:root {
    --bg-dark: #0a0c10;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #00ffaa;
    --accent-secondary: #00d2ff;
    --text-primary: #ffffff;
    --text-secondary: #8b9bb4;
    --error: #ff4d4d;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

.glow-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 170, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.08) 0%, transparent 40%);
    z-index: -1;
}

.mode-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    background: var(--glass-bg);
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--glass-border);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.mode-btn.active {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 255, 170, 0.3);
    transform: scale(1.05);
}

header {
    text-align: center;
    margin-bottom: 70px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.logo-icon-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.35));
    flex-shrink: 0;
}

.accent {
    color: var(--accent-primary);
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    border: 2px dashed var(--glass-border);
    text-align: center;
    padding: 60px 40px;
}

.upload-container:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.camera-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#video-feed, #side-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror view for both cameras */
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-guide {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: 50% 50% 40% 40%;
}

.v-line {
    position: absolute;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.15);
}

.live-dist-hud {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 10px;
    border-radius: 40px;
    border: 1px solid var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10;
    min-width: 220px;
}

.dist-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.fps-info {
    padding: 0 15px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

#fps-val {
    color: var(--accent-secondary);
}

.live-dist-hud .label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.live-dist-hud .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.live-dist-hud .unit {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.camera-controls {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.capture-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
}

.outer-ring {
    width: 70px;
    height: 70px;
    border: 4px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.inner-circle {
    width: 52px;
    height: 52px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.2s;
}

.capture-btn:hover .outer-ring {
    border-color: var(--accent-primary);
}

.capture-btn:hover .inner-circle {
    background: var(--accent-primary);
    transform: scale(0.9);
}

.capture-btn:active .inner-circle {
    transform: scale(0.8);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.click-text {
    color: var(--accent-primary);
    text-decoration: underline;
}

.guidelines {
    margin-top: 30px;
    text-align: left;
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guidelines li {
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    animation: slideUp 0.6s ease-out;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.status-badge {
    background: rgba(0, 255, 170, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.upload-section, .camera-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px auto; /* Consistent spacing */
}

.upload-container, .camera-container {
    width: 100%;
    max-width: 800px; /* Standardized clinical workspace width */
    text-align: center;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0b0e14;
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-wrapper img,
#result-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.result-actions-header {
    display: flex;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}

.header-adj-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 170, 0.3);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-adj-btn.reset {
    border-color: rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
}

.header-adj-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.header-adj-btn.reset:hover {
    background: #ff4d4d;
    color: #fff;
    border-color: #ff4d4d;
}

.adjustment-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #000;
}

#adj-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.zoom-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 140px;
    height: 140px;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

#zoom-canvas {
    width: 100%;
    height: 100%;
}

.zoom-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 170, 0.4);
    transform: translateY(-50%);
}

.zoom-crosshair::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 140px;
    background: rgba(0, 255, 170, 0.4);
    transform: translate(-50%, -50%);
}

.adj-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.adj-controls p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
    animation: scan 3s linear infinite;
    box-shadow: 0 0 15px var(--accent-primary);
}

.metric-group {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 15px;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.metric-group:nth-child(1) { animation-delay: 0.1s; }
.metric-group:nth-child(2) { animation-delay: 0.2s; }
.metric-group:nth-child(3) { animation-delay: 0.3s; }

.metric-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.value-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'JetBrains+Mono', monospace;
}

.value.small {
    font-size: 1.8rem;
}

.unit {
    color: var(--text-secondary);
    font-size: 1rem;
}

.side-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.primary-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    text-decoration: none;
}

.secondary-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.primary-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.scanner {
    width: 200px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scaleX(0.5); opacity: 0.3; }
    50% { transform: scaleX(1.2); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Side Profile Overlay */
.side-overlay {
    border: 1px dashed rgba(0, 255, 255, 0.2);
}

.profile-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.guide-line.vertical {
    width: 2px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    box-shadow: 0 0 15px var(--accent-primary);
    opacity: 0.5;
}

@keyframes fadeIn {
    from { transform: translateX(10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─── Responsive Breakpoints ─────────────────────────────────── */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
    .container {
        padding: 20px 16px 40px;
    }

    header {
        margin-bottom: 40px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo-icon {
        display: none;
    }

    .logo-icon-img {
        height: 42px;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .mode-selector {
        gap: 8px;
        padding: 6px;
    }

    .mode-btn {
        padding: 9px 16px;
        font-size: 0.78rem;
    }

    /* Results layout: stack vertically */
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Show metrics card above the image for instant feedback */
    .metrics {
        order: -1;
    }

    .glass-card {
        padding: 22px;
        border-radius: 18px;
    }

    .value {
        font-size: 2.2rem;
    }

    .value.small {
        font-size: 1.5rem;
    }

    .camera-container {
        max-width: 100%;
    }

    .side-metrics {
        gap: 12px;
    }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
    .container {
        padding: 12px 10px 30px;
    }

    header {
        margin-bottom: 28px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .logo-icon-img {
        height: 32px;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    /* Mode selector: horizontal scroll on very small screens */
    .mode-selector {
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 14px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mode-selector::-webkit-scrollbar { display: none; }

    .mode-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Camera section fills width */
    .camera-section,
    .upload-section {
        margin: 16px auto;
    }

    .camera-container {
        padding: 12px;
        border-radius: 14px;
    }

    /* Video feed - natural portrait on phones */
    .video-wrapper {
        aspect-ratio: 3/4;
        border-radius: 10px;
    }

    /* HUD shrinks on mobile */
    .live-dist-hud {
        min-width: 160px;
        padding: 6px 8px;
        gap: 0;
    }

    .live-dist-hud .value {
        font-size: 1.1rem;
    }

    .dist-info, .fps-info {
        padding: 0 10px;
    }

    /* Side profile section */
    #side-profile-section .glass-card {
        padding: 12px;
    }

    /* Results */
    .glass-card {
        padding: 16px;
        border-radius: 14px;
    }

    .card-header {
        font-size: 0.72rem;
        margin-bottom: 14px;
    }

    .value {
        font-size: 1.8rem;
    }

    .value.small {
        font-size: 1.3rem;
    }

    .unit {
        font-size: 0.85rem;
    }

    .metric-group {
        padding: 14px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .side-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* Capture button */
    .outer-ring {
        width: 58px;
        height: 58px;
    }

    .inner-circle {
        width: 42px;
        height: 42px;
    }

    .capture-btn {
        font-size: 0.8rem;
    }

    /* Action buttons side-by-side */
    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .primary-btn, .secondary-btn {
        flex: 1;
        min-width: 130px;
        padding: 12px 10px;
        font-size: 0.82rem;
    }

    /* Adjust trigger button */
    .result-actions-header {
        margin-right: 5px;
        gap: 5px;
    }

    .header-adj-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    /* Loader text */
    .loader-overlay p {
        font-size: 0.85rem;
    }

    /* Adjustment modal */
    .adj-modal-box {
        width: 98vw;
        max-height: 96vh;
        border-radius: 14px;
    }

    .adj-modal-header {
        padding: 14px 16px 12px;
        flex-direction: column;
        gap: 4px;
    }

    .adj-modal-body {
        padding: 12px;
    }

    .adj-modal-footer {
        padding: 12px 16px;
        gap: 8px;
    }

    .adj-modal-footer .primary-btn,
    .adj-modal-footer .secondary-btn {
        padding: 11px 10px;
        font-size: 0.8rem;
    }

    .zoom-panel {
        width: 100px;
        height: 100px;
        top: 10px;
        right: 10px;
    }

    .adj-zoom-controls {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .adj-zoom-controls button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .dot-sel-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
}

/* Small mobile: ≤ 400px */
@media (max-width: 400px) {
    .logo h1 {
        font-size: 1.35rem;
    }

    .logo-icon-img {
        height: 26px;
    }

    .mode-selector {
        padding: 4px;
    }

    .mode-btn {
        padding: 7px 11px;
        font-size: 0.68rem;
    }

    .value {
        font-size: 1.5rem;
    }

    .value.small {
        font-size: 1.1rem;
    }

    .side-metrics {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
    }
}

/* ─── Landmark Adjustment Modal ─────────────────────────────── */
.adj-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.adj-modal-backdrop.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.adj-modal-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,255,170,0.08);
    width: min(92vw, 900px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.adj-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.header-left {
    display: flex;
    flex-direction: column;
}

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

.header-actions button {
    padding: 8px 16px;
    font-size: 0.8rem;
    height: 38px;
    border-radius: 8px;
    white-space: nowrap;
}

.adj-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adj-modal-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.adj-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.adj-canvas-wrap {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,255,170,0.15);
}

.adj-canvas-wrap canvas#adj-canvas {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    cursor: crosshair;
    object-fit: contain;
}

.adj-zoom-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 25;
}

.adj-zoom-controls button {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 170, 0.4);
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adj-zoom-controls button:hover {
    background: var(--accent-primary);
    color: #000;
}

.dot-selector-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    z-index: 25;
}

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

.reset-ai-btn {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.reset-ai-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
    transform: translateY(-1px);
}

.dot-sel-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dot-sel-btn.active {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@media (max-width: 900px) {
    .adj-modal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .header-actions button {
        flex: 1;
        font-size: 0.7rem;
        padding: 6px 8px;
        min-width: 0;
    }
    
    .adj-modal-hint {
        display: none; /* Hide hint on mobile to save space */
    }
}
