/* TPF Design Studio Styles */
/* Extracted from index.html for modularity */

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 2% 12%, #fff9ef 0%, #fdf4e6 35%, #f6e7cf 100%);
    color: #2f1c0c;
}

body.template-modal-open {
    overflow: hidden;
}

body.guide-modal-open {
    overflow: hidden;
}

/* ==== Template Save Overlay ==== */
#template-save-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: rgba(8, 9, 14, 0.75);
    backdrop-filter: blur(2px);
    z-index: 20000;
}

#template-save-overlay.active {
    display: flex;
}

#template-save-overlay .template-save-panel {
    width: min(920px, 96vw);
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(7, 9, 13, 0.65);
    display: flex;
    flex-direction: column;
    color: #f1f5ff;
}

#template-save-overlay .template-save-panel h3,
#template-save-overlay .template-save-panel p {
    color: #f1f5ff;
}

#template-save-overlay .template-save-panel label {
    color: #fef3c7;
    font-weight: 600;
}

#template-save-overlay .template-save-panel .dim-input,
#template-save-overlay .template-save-panel select,
#template-save-overlay .template-save-panel textarea {
    background: #fff5e6;
    color: #1f2937;
    border-color: rgba(255, 255, 255, 0.4);
}

#template-save-overlay .template-save-panel button {
    color: inherit;
}

#template-save-overlay .template-save-panel .template-save-header,
#template-save-overlay .template-save-panel .template-save-footer {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(88, 102, 126, 0.35);
}

#template-save-overlay .template-save-panel .template-save-footer {
    border-bottom: none;
    border-top: 1px solid rgba(88, 102, 126, 0.35);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

#template-save-overlay .template-save-panel .template-save-header {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

#template-save-overlay .template-save-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
}

#template-modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 20px;
    line-height: 1;
}

#template-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#template-save-overlay .template-save-footer button {
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #f8fafc;
}

#template-save-overlay #template-modal-save {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

#template-save-overlay #template-modal-save:disabled {
    opacity: 0.5;
    box-shadow: none;
}

/* ==== Clinician Guide Overlay ==== */
#clinician-guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 10, 15, 0.82);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 22000;
}

#clinician-guide-overlay.active {
    display: flex;
}

.guide-panel {
    width: min(960px, 96vw);
    max-height: 90vh;
    background: #111827;
    color: #f3f4f6;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
}

.guide-header,
.guide-footer {
    padding: 18px 26px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.6);
}

.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.guide-footer {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-top: 1px solid rgba(75, 85, 99, 0.6);
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
}

.guide-body {
    padding: 20px 26px 26px;
    overflow-y: auto;
}

.guide-body section + section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(75, 85, 99, 0.35);
}

.guide-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fef3c7;
}

.guide-body p,
.guide-body ul {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.guide-body ul {
    padding-left: 1.2rem;
}

#close-clinician-guide,
#dismiss-guide-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #f3f4f6;
    border-radius: 10px;
    padding: 6px 14px;
    font-weight: 600;
}

#close-clinician-guide:hover,
#dismiss-guide-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.guide-link {
    background: transparent;
    border: 1px solid rgba(185, 141, 84, 0.6);
    border-radius: 14px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #623916;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.guide-link:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 24px -18px rgba(140, 102, 54, 0.55);
}

.guide-search {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 20px rgba(15, 23, 42, 0.65);
}

.guide-search label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}

.guide-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.guide-search input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.guide-search-status {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #cbd5f5;
}

.guide-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.guide-keywords button {
    border: 1px solid rgba(248, 250, 252, 0.25);
    background: rgba(15, 23, 42, 0.8);
    color: #fbbf24;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.guide-keywords button:hover {
    background: rgba(251, 191, 36, 0.15);
}

.guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    gap: 20px;
}

.guide-nav {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.7);
}

.guide-nav h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    color: #cbd5f5;
}

.guide-directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-directory-list button {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    padding: 8px 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.guide-directory-list button:hover {
    border-color: #fbbf24;
    color: #fbbf24;
}

.guide-index {
    margin-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 14px;
}

.guide-index h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #eab308;
    margin-bottom: 10px;
}

.guide-index-terms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.guide-index-terms button {
    background: rgba(15, 23, 42, 0.9);
    border: 1px dashed rgba(249, 250, 251, 0.25);
    border-radius: 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    padding: 6px 8px;
    text-align: left;
}

.guide-content {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 18px 20px;
    background: rgba(12, 18, 30, 0.88);
    overflow-y: auto;
    max-height: 55vh;
}

.guide-section {
    padding: 16px 0;
}

.guide-section + .guide-section {
    border-top: 1px solid rgba(75, 85, 99, 0.35);
}

.guide-section h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #fde68a;
}

.guide-section p,
.guide-section ul,
.guide-section ol {
    color: #e5e7eb;
    font-size: 0.92rem;
}

.guide-section ul {
    padding-left: 1.1rem;
    margin-top: 6px;
}

.guide-section ol {
    padding-left: 1.2rem;
    margin-top: 6px;
}

.guide-section-highlight {
    box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.45);
    border-radius: 12px;
    padding: 16px;
    margin: -16px;
}

.guide-section-hidden {
    display: none;
}

.guide-media {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.media-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(17, 24, 39, 0.9);
}

.media-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 4px;
}

.media-card p {
    font-size: 0.82rem;
    color: #cbd5f5;
    margin-bottom: 8px;
}

.media-card a {
    font-size: 0.85rem;
    color: #38bdf8;
    text-decoration: underline;
}

.media-placeholder {
    margin-top: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
}

@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    .guide-content {
        max-height: none;
    }
}

/* ==== Component Styles ==== */
.tab-btn.tab-active { 
    font-weight: 600; 
}

.control-panel { 
    transition: opacity 0.3s ease-in-out; 
}

.dat-gui-container .dg.main.a { 
    width: 100% !important; 
}

/* ==== Form Inputs ==== */
input[type=range] { 
    -webkit-appearance: none; 
    appearance: none; 
    background: transparent; 
    width: 100%;
}

input[type=range]:focus { 
    outline: none; 
}

input[type=range]::-webkit-slider-runnable-track { 
    height: 4px; 
    cursor: pointer; 
    background: linear-gradient(90deg, #e9cfac, #caa06c); 
    border-radius: 5px; 
}

input[type=range]::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    height: 16px; 
    width: 16px; 
    border-radius: 50%; 
    background: #3d6bcb; 
    cursor: pointer; 
    margin-top: -6px; 
    box-shadow: 0 2px 6px rgba(41, 73, 149, 0.38); 
}

.dim-input {
    background-color: #fef8eb;
    border: 1px solid rgba(187, 149, 92, 0.4);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #2f1c0c;
    width: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.kbd {
    background-color: #f1dec2;
    border: 1px solid rgba(176, 138, 86, 0.55);
    border-radius: 0.25rem;
    padding: 2px 6px;
    font-family: monospace;
    font-weight: 600;
    color: #3a2511;
}

/* Hide default HTML5 number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard property */
}

/* ==== Button Styles ==== */
.prescription-template-btn {
    transition: all 0.2s ease-in-out;
}

.prescription-template-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.prescription-template-btn:active {
    transform: translateY(0);
}

.btn-processing {
    opacity: 0.6 !important;
    pointer-events: none !important;
    transition: opacity 0.1s ease;
}

.updating-cursor {
    cursor: wait !important;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==== Application Layout ==== */
.app-topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: linear-gradient(180deg, #fdf4e6 0%, #f2ddbe 100%);
    border-bottom: 1px solid rgba(166, 128, 76, 0.4);
    box-shadow: 0 10px 28px -20px rgba(90, 72, 44, 0.55);
    position: relative;
    z-index: 30;
}

.app-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% -30%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 45%);
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 46px;
    width: auto;
    filter: none;
}

.brand-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3a2210;
}

.brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: rgba(90, 54, 21, 0.62);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.studio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(193, 151, 96, 0.4);
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 10px 24px -20px rgba(120, 87, 37, 0.5);
}

.studio-pill .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background-color: #45c17c;
    box-shadow: 0 0 0 4px rgba(69, 193, 124, 0.25);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #623916;
}

.auth-links a {
    color: #623916;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.auth-links a:hover {
    border-bottom-color: rgba(114, 64, 22, 0.65);
    color: #4c2c0d;
}

.auth-links #account-link {
    color: #4d2bb1;
}

.auth-links #account-link:hover {
    color: #33207d;
    border-bottom-color: rgba(77, 43, 177, 0.45);
}

.auth-links #admin-link {
    color: #8a2be2;
}

.auth-links #admin-link:hover {
    color: #6f1cc2;
}

.auth-links button {
    background: linear-gradient(180deg, #ffffff 0%, #f2ddba 100%);
    color: #543617;
    border: 1px solid rgba(185, 141, 84, 0.45);
    border-radius: 14px;
    padding: 7px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -18px rgba(140, 102, 54, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-links button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -20px rgba(140, 102, 54, 0.6);
}

.panel-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f2ddba 100%);
    color: #543617;
    border: 1px solid rgba(185, 141, 84, 0.45);
    border-radius: 14px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 24px -18px rgba(140, 102, 54, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -20px rgba(140, 102, 54, 0.6);
}

.panel-toggle .pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.18);
}

.app-layout {
    display: flex;
    height: calc(100vh - 84px);
    background: radial-gradient(circle at 12% 18%, rgba(255, 245, 230, 0.85) 0%, rgba(245, 223, 198, 0.6) 40%, rgba(221, 194, 158, 0.45) 100%);
    border-radius: 26px;
    border: 1px solid rgba(185, 144, 90, 0.36);
    box-shadow: 0 40px 80px -48px rgba(66, 41, 5, 0.45);
    overflow: hidden;
    --sidebar-gap: 0px;
}

.app-layout.layout-right {
    flex-direction: row-reverse;
}

.app-main {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
    position: relative;
    gap: 0;
    padding-right: 0;
}

.app-layout.layout-right .app-main {
    flex-direction: row-reverse;
}

.app-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-right: 1px solid rgba(185, 144, 90, 0.28);
    box-shadow: 20px 0 36px -28px rgba(106, 66, 11, 0.35);
    padding: 24px 20px;
    margin-right: var(--sidebar-gap);
    position: relative;
    z-index: 1;
    color: #2f1c0c;
    overflow: visible;
    overflow-y: auto;
}

.app-layout.layout-right .app-sidebar {
    border-right: none;
    border-left: 1px solid rgba(185, 144, 90, 0.28);
    box-shadow: -20px 0 36px -28px rgba(106, 66, 11, 0.35);
    margin-right: 0;
    margin-left: var(--sidebar-gap);
}

.app-sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    pointer-events: none;
}

.app-layout.layout-right .app-sidebar::after {
    right: auto;
    left: 0;
}

.app-sidebar nav {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 2px 10px 2px;
    border-bottom: 1px solid rgba(169, 135, 82, 0.45);
    margin-bottom: 18px;
}

@media (max-width: 1280px) {
    .app-layout {
        --sidebar-gap: 0px;
    }
}

.tab-btn {
    flex: 1 1 auto;
    background: linear-gradient(180deg, #f8f0df 0%, #efe1c9 100%);
    border: 1px solid rgba(145, 112, 64, 0.55);
    border-bottom: 3px solid transparent;
    border-radius: 11px 11px 0 0;
    padding: 6px 8px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #3b2715;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px -6px rgba(40, 24, 8, 0.4);
    transform: translateY(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-btn:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 10px 16px -14px rgba(40, 24, 8, 0.6);
}

.tab-btn.tab-active {
    color: #1f1207;
    background: linear-gradient(180deg, #ffffff 0%, #f6ead2 100%);
    border-bottom-color: #3460b6;
    box-shadow: 0 14px 24px -20px rgba(38, 44, 96, 0.6);
    transform: translateY(0);
}

.control-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 230, 0.95));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 42px -30px rgba(120, 80, 24, 0.35);
    border: 1px solid rgba(204, 164, 110, 0.22);
}

.control-panel.hidden {
    display: none;
}

/* ==== Sidebar Theming ==== */
.app-sidebar h2,
.app-sidebar h3,
.app-sidebar h4 {
    color: #3f2611;
}

.app-sidebar .text-gray-400,
.app-sidebar .text-gray-300,
.app-sidebar .text-gray-500 {
    color: rgba(73, 48, 23, 0.65) !important;
}

.app-sidebar .text-white {
    color: #2f1c0c !important;
}

.app-sidebar .bg-blue-600,
.app-sidebar .border-gray-700,
.app-sidebar .border-gray-700\/50 {
    border-color: rgba(169, 135, 82, 0.45) !important;
}

.app-sidebar .bg-green-600,
.app-sidebar .bg-indigo-600,
.app-sidebar .bg-purple-600,
.app-sidebar .bg-cyan-600,
.app-sidebar .bg-orange-600,
.app-sidebar .bg-emerald-600,
.app-sidebar .bg-yellow-600,
.app-sidebar .bg-red-600 {
    color: #3b2715 !important;
}

.app-sidebar .bg-gray-700\/50,
.app-sidebar .bg-gray-700\/30,
.app-sidebar .bg-gray-800\/50,
.app-sidebar .bg-gray-800\/30 {
    background: linear-gradient(135deg, rgba(255, 254, 248, 0.96), rgba(249, 237, 210, 0.88)) !important;
    border: 1px solid rgba(203, 166, 111, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 28px -26px rgba(109, 70, 12, 0.6);
}

.app-sidebar :not(button).bg-gray-700,
.app-sidebar :not(button).bg-gray-600 {
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.95), rgba(243, 224, 194, 0.88)) !important;
    border: 1px solid rgba(203, 166, 111, 0.25);
    color: #2f1c0c;
}

.app-sidebar :not(button).bg-gray-600:hover,
.app-sidebar :not(button).bg-gray-700:hover {
    background: linear-gradient(180deg, rgba(255, 253, 246, 0.95), rgba(249, 232, 204, 0.94)) !important;
}

.app-sidebar .dim-input,
.app-sidebar input[type="text"],
.app-sidebar input[type="number"],
.app-sidebar select {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(199, 155, 98, 0.4);
    color: #2f1c0c;
    border-radius: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-sidebar .dim-input:focus,
.app-sidebar input[type="text"]:focus,
.app-sidebar input[type="number"]:focus,
.app-sidebar select:focus {
    border-color: rgba(162, 110, 36, 0.68);
    box-shadow: 0 0 0 3px rgba(241, 199, 138, 0.45);
    outline: none;
}

.app-canvas {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at 55% 40%, rgba(255, 255, 255, 0.85) 0%, rgba(248, 232, 205, 0.75) 45%, rgba(240, 210, 170, 0.55) 100%);
    overflow: hidden;
    min-width: 0;
}

.app-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.8) 0%, rgba(255,255,255,0) 46%);
    pointer-events: none;
    z-index: 0;
}

.app-sidebar button.stepper-btn,
.app-sidebar button[data-step] {
    background: linear-gradient(135deg, rgba(208, 162, 102, 0.92), rgba(167, 118, 52, 0.94)) !important;
    border: none;
    color: #fffef8;
}

.app-sidebar .text-xs {
    color: rgba(63, 40, 12, 0.65) !important;
}

.app-sidebar .bg-blue-900\/20 {
    background: linear-gradient(135deg, rgba(255, 248, 233, 0.95), rgba(233, 216, 177, 0.85)) !important;
    border: 1px solid rgba(203, 166, 111, 0.3);
}

.studio-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% -45%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 38%);
}

.hidden-option {
    display: none;
}
