.ai-page [hidden] { display: none !important; }
.ai-page .ai-design-studio { padding: 0; min-height: 0; }
.ai-mode-tabs { display: flex; gap: 4px; padding: 0 24px 12px; border-bottom: 1px solid #e0e7e4; }
.ai-mode-tabs button { min-height: 38px; padding: 8px 14px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; background: #f2f5f4; color: #41564d; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12px; line-height: 18px; }
.ai-mode-tabs button.active { background: #005c55; color: #fff; }
.ai-mode-tabs .material-symbols-outlined { font-size: 18px; }
.studio-workspace { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 24px; padding: 24px; }
.studio-controls { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.studio-controls h2 { margin: 0; font-size: 18px; line-height: 26px; }
.studio-controls > label:not(.studio-upload):not(.studio-check) { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.studio-controls select, .studio-controls textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cbd8d2; border-radius: 6px; background: #fff; color: #25332c; font: inherit; font-size: 12px; }
.studio-controls textarea { resize: vertical; }
.studio-upload { min-height: 102px; padding: 14px; border: 1px dashed #84aaa0; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #005c55; background: #f2f8f5; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; }
.studio-upload .material-symbols-outlined { font-size: 26px; }
.studio-upload small { color: #61706a; font-size: 10px; font-weight: 400; }
.studio-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 17px; color: #43574e; }
.studio-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #005c55; }
.studio-primary { min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: #005c55; font-size: 12px; font-weight: 600; cursor: pointer; }
.studio-primary:disabled { opacity: .5; cursor: not-allowed; }
.studio-primary .material-symbols-outlined { font-size: 19px; }
.studio-note { margin: 0; color: #66766f; font-size: 10px; line-height: 16px; }
.studio-preview { min-width: 0; }
.studio-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-bottom: 12px; }
.studio-view-tabs, .studio-tools { display: flex; gap: 4px; }
.studio-view-tabs button { padding: 8px 10px; min-height: 36px; border: 0; border-radius: 5px; background: #f1f4f2; color: #40554b; cursor: pointer; font-size: 11px; }
.studio-view-tabs button.active { background: #e0f0e8; color: #005c55; font-weight: 700; }
.studio-view-tabs button:disabled, .studio-tools button:disabled { opacity: .4; cursor: not-allowed; }
.studio-tools button, .chat-photo-preview > button, .ai-design-message-actions button { width: 36px; height: 36px; padding: 0; border: 1px solid #d6e0da; border-radius: 6px; display: grid; place-items: center; color: #005c55; background: #fff; cursor: pointer; }
.studio-tools .material-symbols-outlined { font-size: 20px; }
.studio-stage { width: 100%; aspect-ratio: 4/3; display: grid; grid-template-columns: minmax(0,1fr); background: #eef2f0; overflow: hidden; border-radius: 6px; }
.studio-stage[data-view=compare] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; aspect-ratio: 8/3; }
.studio-stage figure { position: relative; width: 100%; height: 100%; min-height: 0; margin: 0; overflow: hidden; }
.studio-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.studio-stage figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 4px; color: #24362c; background: rgba(255,255,255,.94); font-size: 10px; }
#studio-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #789087; }
#studio-empty > .material-symbols-outlined { font-size: 44px; }
#studio-empty strong { color: #415b4e; font-size: 16px; }
#studio-empty label { padding: 8px 12px; background: #fff; color: #005c55; border: 1px solid #c9d7cf; border-radius: 6px; font-size: 12px; cursor: pointer; }
#studio-status { min-height: 40px; margin: 12px 0 0; font-size: 12px; line-height: 20px; color: #466354; overflow-wrap: anywhere; }
#studio-status[data-error=true] { color: #ab3035; }
.chat-photo-preview { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 10px; background: #f2f8f5; border: 1px solid #d4e2d9; border-radius: 6px; }
.chat-photo-preview img { flex: 0 0 auto; width: 60px; height: 52px; object-fit: cover; border-radius: 4px; }
.chat-photo-preview > div { flex: 1; min-width: 0; }
.chat-photo-preview strong { display: block; margin-bottom: 4px; font-size: 11px; overflow-wrap: anywhere; }
.ai-message-photo { display: block; width: min(100%,480px); max-height: 340px; margin-top: 10px; border-radius: 6px; object-fit: contain; }
.ai-design-message-actions { display: flex; gap: 8px; margin-top: 10px; }
.studio-workspace button:focus-visible, .ai-mode-tabs button:focus-visible { outline: 2px solid #005c55; outline-offset: 3px; }
@media(max-width:800px) { .studio-workspace { grid-template-columns: minmax(0,1fr); padding: 16px; gap: 16px; } .studio-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .studio-controls h2, .studio-upload, .studio-controls > label:has(textarea), .studio-check, .studio-primary, .studio-note { grid-column: 1/-1; } .studio-preview { grid-row: 1; } }
@media(max-width:600px) { .ai-page .results-actions .lang-toggle { display: inline-flex; min-width: 0; padding-inline: 8px; font-size: 11px; } .ai-page .ai-session-header { flex-wrap: wrap; } .ai-page .ai-session-header > div:first-child { width: 100%; } .ai-page .ai-session-actions { width: 100%; justify-content: flex-end; } .ai-page .ai-session-actions button:last-child { display: grid; } }
@media(max-width:420px) { .ai-mode-tabs { padding-inline: 16px; } .studio-view-tabs button { padding-inline: 8px; font-size: 10px; } .studio-tools button { width: 30px; height: 30px; } .studio-preview > header { gap: 4px; } .chat-photo-preview { gap: 8px; } .chat-photo-preview .studio-check { font-size: 10px; } }
