/* Mavjud tokenlar; kichik ekranda barcha kataklar minmax(0,1fr). */
.quick-prompts{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.quick-prompt,.feature-button{min-height:42px;padding:9px 12px;border:1px solid var(--st-line);border-radius:12px;color:var(--st-text);background:var(--st-surface);font:inherit;cursor:pointer}.quick-prompts a{display:block;width:100%;font-size:12px;color:var(--st-muted)}
.conversation-search{width:100%;min-width:0;min-height:42px;padding:10px;border:1px solid var(--st-line);border-radius:12px;background:var(--st-surface);color:var(--st-text);margin:10px 0}
.feature-history-row{display:flex;align-items:center;gap:4px;min-width:0}.feature-history-row .history-item{flex:1;min-width:0}.feature-history-row .history-item span{overflow:hidden;text-overflow:ellipsis}.feature-history-row input{min-width:0;width:100%;padding:10px;border:1px solid var(--st-line);background:var(--st-surface);color:var(--st-text)}
.feature-history-group{font-size:11px;color:var(--st-muted);margin:16px 8px 5px}.feature-conversation-menu{position:relative;flex-shrink:0}.feature-conversation-menu summary{min-width:40px;min-height:40px;display:grid;place-items:center;cursor:pointer;list-style:none}.feature-conversation-menu[open]{z-index:6}.feature-conversation-menu button{display:block;width:190px;max-width:100%;white-space:normal;text-align:left}.feature-conversation-menu[open] button{position:relative;background:var(--st-surface-raised)}.history-item mark{background:var(--st-accent-soft);color:var(--st-accent)}
html.sidebar-collapsed .conversation-search,html.sidebar-collapsed .feature-history-group{display:none}
.feature-tabs{display:flex;gap:6px;margin:10px 0}.feature-tabs button{flex:1;min-width:0;min-height:42px;border:1px solid var(--st-line);border-radius:10px;background:var(--st-surface);color:var(--st-text);cursor:pointer}.feature-tabs button[aria-selected=true]{color:var(--st-accent);background:var(--st-accent-soft)}
.feature-files-list{overflow-y:auto;min-width:0}.feature-file-row{display:flex;gap:10px;width:100%;min-height:60px;padding:10px 6px;border:0;border-radius:10px;background:transparent;color:var(--st-text);text-align:left;cursor:pointer}.feature-file-copy{display:grid;gap:4px;min-width:0}.feature-file-copy strong{font-size:13px;overflow-wrap:anywhere}.feature-file-copy small{font-size:11px;color:var(--st-muted)}.feature-file-icon{font-size:20px;color:var(--st-accent)}
.feature-dialog{width:min(600px,calc(100% - 24px));max-height:90dvh;padding:22px;border:1px solid var(--st-line);border-radius:22px;background:var(--st-surface);color:var(--st-text);overflow-y:auto}.feature-dialog::backdrop{background:rgba(8,15,30,.65)}.feature-work-actions{display:flex;flex-wrap:wrap;gap:10px}.feature-work-actions button{max-width:100%;overflow-wrap:anywhere}.feature-gallery{width:min(1100px,calc(100% - 24px))}.feature-gallery-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px}.feature-gallery-toolbar input:not([type=checkbox]),.feature-gallery-toolbar select{min-width:0;min-height:44px;max-width:100%;padding:10px;background:var(--st-bg);color:var(--st-text);border:1px solid var(--st-line);border-radius:12px}.feature-gallery-toolbar label{display:flex;align-items:center;gap:8px;min-width:0}.feature-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.feature-template-card{position:relative;min-width:0;border:1px solid var(--st-line);border-radius:14px;overflow:hidden}.feature-template-view{width:100%;padding:8px;border:0;background:var(--st-bg);color:var(--st-text);text-align:left;cursor:pointer}.feature-template-view img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}.feature-template-view strong,.feature-template-view small{display:block;overflow-wrap:anywhere;margin:8px 0}.feature-template-star{min-width:40px;min-height:40px;border:0;background:var(--st-surface-raised);color:var(--st-accent);border-radius:10px;cursor:pointer}.feature-dialog>img{width:100%;max-height:65dvh;object-fit:contain}.feature-files-list a{display:block;padding:12px;color:var(--st-accent)}
html.sidebar-collapsed .feature-tabs button:first-child{display:none}html.sidebar-collapsed .feature-tabs span,html.sidebar-collapsed .feature-files-list{display:none}
@media(max-width:1039px){.feature-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.feature-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.feature-dialog{padding:14px}.feature-gallery-toolbar{flex-direction:column}.feature-gallery-toolbar input:not([type=checkbox]){width:100%}.feature-template-view strong{font-size:12px}}
.feature-work-card{padding:16px;margin:14px 0;max-width:100%;min-width:0}.feature-work-card h3{overflow-wrap:anywhere}.feature-preview-strip{display:flex;gap:10px;overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;padding:8px 0}.feature-preview-page{flex:0 0 140px;min-width:0}.feature-preview-button{width:100%;border:1px solid var(--st-line);border-radius:12px;background:var(--st-bg);color:var(--st-text);padding:5px;cursor:pointer}.feature-preview-button img{display:block;width:100%;min-height:80px;object-fit:contain}.feature-preview-page>button{min-height:40px}.feature-preview-button small{display:block;margin:5px}#featurePreviewImage{width:100%;max-height:65dvh;object-fit:contain}
.feature-editor{width:min(960px,calc(100% - 24px))}.feature-editor>label{display:grid;gap:8px;min-width:0;margin:16px 0}.feature-editor input,.feature-editor select,.feature-editor textarea{max-width:100%;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--st-line);border-radius:12px;background:var(--st-bg);color:var(--st-text);font:inherit;font-size:16px}.feature-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.feature-comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow-y:auto;padding:12px;border:1px solid var(--st-line);border-radius:12px;font:inherit}#featureEditPrice{font-size:14px;color:var(--st-muted);line-height:1.6}@media(max-width:600px){.feature-comparison{grid-template-columns:1fr}}

/* Dizayn sayqali (2026-10-11): sayt tokenlari, chat uslubiga moslash. */
.feature-tabs{gap:2px;margin:12px 0 8px;padding:3px;border-radius:12px;background:var(--st-surface-raised)}
.feature-tabs button{min-height:34px;border:0;border-radius:9px;background:transparent;color:var(--st-muted);font-size:12.5px;font-weight:600;transition:background .15s,color .15s}
.feature-tabs button:hover{color:var(--st-text)}
.feature-tabs button[aria-selected=true]{background:var(--st-surface);color:var(--st-text);box-shadow:0 1px 3px rgba(15,23,42,.12)}
html.sidebar-collapsed .feature-tabs{display:none}
.feature-files-list{padding:2px 0}
.feature-file-row{align-items:center;min-height:56px;padding:8px;transition:background .15s}
.feature-file-row:hover{background:var(--st-surface-raised)}
.feature-file-icon{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:11px;background:var(--st-card-blue);font-size:16px}
.feature-file-copy strong{font-size:12.5px;font-weight:600;line-height:1.35}
.feature-files-list a{padding:10px 8px;font-size:12.5px;font-weight:600;text-decoration:none}
.conversation-search{min-height:38px;padding:8px 12px;border-radius:10px;font-size:13px;background:var(--st-surface-raised)}
.feature-history-group{font-size:10.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--st-faint)}

.feature-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 16px;border-radius:12px;font-size:14px;font-weight:600;transition:background .15s,border-color .15s,transform .1s}
.feature-button:hover{border-color:color-mix(in srgb,var(--st-accent) 40%,var(--st-line))}
.feature-button:active{transform:scale(.98)}
.feature-button:disabled{opacity:.55;cursor:not-allowed}
#featureEditGenerate,#featureEditApply,.feature-work-actions>.feature-button:first-child{border-color:transparent;background:var(--st-cta);color:var(--st-on-cta,#fff)}
#featureEditGenerate:hover,#featureEditApply:hover,.feature-work-actions>.feature-button:first-child:hover{background:var(--st-cta-hover,var(--st-cta))}
#featureEditCancel{background:transparent}
#featurePreviewDialog .feature-work-actions{justify-content:center;align-items:center}

.feature-work-card{border-radius:20px}
.feature-work-card h3{margin:10px 0 12px;font-size:17px;font-weight:700}
.feature-preview-strip{gap:12px;padding:4px 2px 10px;scrollbar-width:thin}
.feature-preview-page{position:relative;flex-basis:156px}
.feature-preview-button{padding:4px;border-radius:12px;transition:border-color .15s,transform .15s}
.feature-preview-button:hover{border-color:var(--st-accent);transform:translateY(-1px)}
.feature-preview-button img{aspect-ratio:16/9;min-height:0;object-fit:cover;border-radius:8px;background:var(--st-surface-raised)}
.feature-preview-button small{margin:6px 4px 2px;font-size:11px;font-weight:600;color:var(--st-muted);text-align:left}
.feature-preview-page>button:not(.feature-preview-button){position:absolute;top:10px;right:10px;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--st-line);border-radius:50%;background:var(--st-surface);color:var(--st-accent);font-size:14px;box-shadow:0 2px 8px rgba(15,23,42,.18);cursor:pointer;opacity:.92;transition:transform .15s,opacity .15s}
.feature-preview-page>button:not(.feature-preview-button):hover{opacity:1;transform:scale(1.08)}

.feature-dialog h2,.feature-dialog h3:first-child{margin:0 0 6px;font-size:20px;font-weight:700;letter-spacing:-.3px}
.feature-editor>label{gap:7px;margin:14px 0;font-size:13px;font-weight:600;color:var(--st-muted)}
.feature-editor input,.feature-editor textarea{transition:border-color .15s,box-shadow .15s}
.feature-editor input:focus,.feature-editor textarea:focus{outline:none;border-color:var(--st-accent);box-shadow:0 0 0 3px var(--st-accent-soft)}
#featureEditPrice{display:inline-block;margin:4px 0 12px;padding:6px 12px;border-radius:999px;background:var(--st-accent-soft);color:var(--st-accent);font-size:13px;font-weight:600}
.feature-comparison pre{background:var(--st-bg);font-size:14px;line-height:1.55}
.feature-comparison>div:last-child pre,#featureEditNew{border-color:color-mix(in srgb,var(--st-success) 45%,var(--st-line));background:color-mix(in srgb,var(--st-success) 6%,var(--st-bg))}

.feature-gallery-toolbar{align-items:center}
.feature-gallery-toolbar input:not([type=checkbox]){flex:1 1 240px}
.feature-gallery-toolbar input:not([type=checkbox]):focus{outline:none;border-color:var(--st-accent);box-shadow:0 0 0 3px var(--st-accent-soft)}
.feature-gallery-grid{gap:14px}
.feature-template-card{border-radius:16px;background:var(--st-bg);transition:transform .15s,box-shadow .15s,border-color .15s}
.feature-template-card:hover{transform:translateY(-2px);box-shadow:var(--st-shadow);border-color:color-mix(in srgb,var(--st-accent) 35%,var(--st-line))}
.feature-template-view{padding:8px 8px 10px}
.feature-template-view img{background:var(--st-surface-raised)}
.feature-template-view strong{margin:10px 2px 2px;font-size:14px;font-weight:650}
.feature-template-view small{margin:2px;font-size:12px;color:var(--st-muted)}
.feature-template-star{position:absolute;top:14px;right:14px;display:grid;place-items:center;min-width:32px;min-height:32px;width:32px;height:32px;padding:0;border-radius:50%;background:rgba(15,23,42,.6);color:#ffd166;font-size:16px;line-height:1}

.quick-prompts{gap:8px}
.quick-prompt{min-height:38px;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:500;transition:border-color .15s,background .15s}
.quick-prompt:hover{border-color:var(--st-accent);background:var(--st-accent-soft);color:var(--st-accent)}
@media (prefers-reduced-motion:reduce){.feature-template-card,.feature-preview-button,.feature-button{transition:none}.feature-template-card:hover,.feature-preview-button:hover{transform:none}}
@media(max-width:600px){.feature-preview-page{flex-basis:138px}.feature-template-star{top:12px;right:12px;width:28px;height:28px;min-width:28px;min-height:28px;font-size:14px}.feature-gallery-grid{gap:10px}}
.feature-editor>label input,.feature-editor>label textarea,.feature-editor>label select{font-weight:400;color:var(--st-text)}

/* Kategoriya chiplari: faqat shu qator telefon ekranida suriladi. */
.feature-filter-chips{display:flex;gap:6px;flex-wrap:wrap;max-width:100%;min-width:0}
.feature-filter-chip{flex-shrink:0;min-height:38px;padding:8px 14px;border:1px solid var(--st-line);border-radius:999px;background:var(--st-surface);color:var(--st-text);font:inherit;cursor:pointer}
.feature-filter-chip[aria-pressed=true]{background:var(--st-accent-soft);color:var(--st-accent);border-color:var(--st-accent)}
@media(max-width:600px){.feature-filter-chips{width:100%;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain}.feature-gallery-toolbar input:not([type=checkbox]){flex:0 0 auto}}

/* Hujjat sarlavhalari va tahrir tugmalari kichik ekranda ham sig'adi. */
.feature-section-list{display:grid;gap:6px;margin:12px 0;min-width:0}
.feature-section-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--st-line);border-radius:12px;background:var(--st-surface-raised);min-width:0}
.feature-section-row span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}
.feature-section-row button{flex-shrink:0;min-width:40px;padding:6px}
.feature-editor label[hidden]{display:none}

/* E bosqichi sayqali */
.feature-section-list{display:grid;gap:8px;margin:4px 0 14px}
.feature-section-row{gap:12px;min-height:52px;padding:8px 8px 8px 14px;transition:border-color .15s}
.feature-section-row:hover{border-color:color-mix(in srgb,var(--st-accent) 40%,var(--st-line))}
.feature-section-row span{font-size:13.5px;font-weight:600}
.feature-section-row button{display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:1px solid var(--st-line);border-radius:50%;background:var(--st-surface);color:var(--st-accent);font-size:14px;cursor:pointer;transition:transform .15s,background .15s}
.feature-section-row button:hover{transform:scale(1.08);background:var(--st-accent-soft)}
#featureEditPrice{display:flex;width:fit-content;max-width:100%}
#featureEditGenerate{display:flex}
.feature-editor .st-select-trigger{font-weight:400;color:var(--st-text);background:var(--st-bg)}
@media (prefers-reduced-motion:reduce){.feature-section-row button{transition:none}.feature-section-row button:hover{transform:none}}

/* Taqdimot draft kartasidagi shablon qatori */
.order-template{display:flex;align-items:center;gap:12px;margin:12px 0 4px;padding:10px;border:1px solid var(--st-line);border-radius:14px;background:var(--st-surface-raised);min-width:0}
.order-template img{flex-shrink:0;width:84px;aspect-ratio:16/9;object-fit:cover;border-radius:8px;background:var(--st-bg);box-shadow:0 2px 8px rgba(15,23,42,.12)}
.order-template-copy{display:grid;gap:2px;min-width:0;flex:1}
.order-template-copy small{font-size:11px;color:var(--st-muted)}
.order-template-copy b{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-template button{flex-shrink:0;min-height:36px;padding:6px 12px;font-size:13px}
@media(max-width:380px){.order-template img{width:64px}.order-template button{padding:6px 10px}}
