@font-face { font-family: "DressRoom UI"; src: url("/assets/inter.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --paper: #f2f2f0; --ink: #222325; --muted: #6d7074; --panel: #e9e9e6; --line: #24282d21; --glass: #ffffff8c; --glass-edge: #ffffffd6; --signal: #765b61; --photo-surface: #eeefec; }
[data-theme="dark"] { --paper: #17181a; --ink: #f0f0ed; --muted: #a4a6aa; --panel: #222426; --line: #f0f0ed21; --glass: #292b2da6; --glass-edge: #ffffff25; --signal: #bba5ab; --photo-surface: #1c1e20; }
html, body, button, input, textarea, select { font-family: "DressRoom UI", Arial, sans-serif; }
body { background: var(--paper); color: var(--ink); font-size: 13px; }
::selection { background: #b4a2a45e; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.site-header, [data-theme="dark"] .site-header { width: calc(100% - 32px); max-width: 1240px; height: 66px; margin-top: 14px; padding: 0 20px; border-radius: 16px; border: 1px solid var(--line); box-shadow: inset 0 1px 0 #ffffff0b; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.plain-title { border-radius: 8px; }
.brand-symbol { width: 26px; height: 32px; }
.header-tools { gap: 5px; }
.header-tools .icon-button { width: 34px; height: 36px; color: var(--muted); border-radius: 8px; }
.header-tools .icon-button:hover { color: var(--ink); }
.desktop-nav { padding: 0; border: 0; background: transparent; gap: 7px; }
.desktop-nav button { font-size: 11px; text-transform: none; letter-spacing: 0; padding: 11px 18px; border-radius: 9px; }
.desktop-nav button.active, [data-theme="dark"] .desktop-nav button.active { background: var(--panel); box-shadow: none; }
main { max-width: 1180px; padding-top: 34px; padding-bottom: 90px; }
.page-title { margin: 0 0 28px; align-items: center; }
.page-title h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 520; letter-spacing: -.055em; }
.page-title h1 em { font: inherit; }
.page-title p { font-size: 12px; margin-top: 12px; line-height: 1.7; color: var(--muted); }
.primary, [data-theme="dark"] .primary { border-radius: 11px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 550; font-size: 12px; letter-spacing: -.15px; box-shadow: none; }
.primary:hover:not(:disabled), [data-theme="dark"] .primary:hover:not(:disabled) { color: var(--paper); background: color-mix(in srgb, var(--ink) 90%, var(--paper)); }
.primary:disabled, .studio-controls .primary:disabled { opacity: 1; color: var(--muted); border-color: var(--line); background: color-mix(in srgb, var(--ink) 9%, var(--panel)); box-shadow: none; }
.secondary { background: transparent; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.text-button { color: var(--ink); font-weight: 450; }
body[data-page="studio"] main { max-width: 1080px; padding-top: 34px; }
.studio-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.studio-eyebrow > span { font-size: 9px; font-weight: 550; letter-spacing: 1.8px; color: var(--muted); }
.studio-help { font-size: 10px; color: var(--muted); }
body[data-page="studio"] .studio-heading { display: block; margin: 0; }
body[data-page="studio"] .studio-heading h1 { font: 520 clamp(38px, 4.7vw, 61px)/1.06 "DressRoom UI", Arial, sans-serif; letter-spacing: -.065em; max-width: 830px; }
.studio-heading h1 > span { color: var(--muted); }
.studio-lead { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 18px; }
.studio-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 27px 0 18px; padding: 0; border: 0; }
body[data-page="studio"] .trial-strip { margin: 0; padding: 0; border: 0; gap: 16px; font-size: 11px; }
.trial-strip > span { display: inline-flex; border: 1px solid var(--line); padding: 8px 12px; border-radius: 30px; background: var(--glass); }
.trial-strip .text-button { font-size: 10px; min-height: 32px; }
.clipboard-hint { font-size: 10px; color: var(--muted); }
body[data-page="studio"] .studio-grid { gap: 16px; margin: 0; }
body[data-page="studio"] .upload-panel { border-radius: 17px; padding: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #ffffff09; }
.upload-panel-title { gap: 9px; margin-bottom: 13px; }
.upload-panel-title > span:first-child { background: transparent; border: 0; border-radius: 0; width: auto; height: auto; padding: 0; font: 10px "DressRoom UI", sans-serif; color: var(--muted); }
.upload-panel-title h2 { font-size: 10px; font-weight: 550; text-transform: none; letter-spacing: 0; }
.upload-ready { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 9px; }
.upload-ready svg { width: 11px; height: 11px; }
body[data-page="studio"] .upload-zone { height: clamp(230px, 30svh, 300px); padding: 18px; gap: 7px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--muted) 28%, transparent); background: var(--photo-surface); }
body[data-page="studio"] .upload-zone:hover:not(:disabled), body[data-page="studio"] .upload-zone:focus-visible { background: color-mix(in srgb, var(--ink) 3%, var(--photo-surface)); border-color: var(--muted); }
.upload-glyph { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); background: var(--glass); border-radius: 17px; margin-bottom: 10px; color: var(--muted); }
.upload-glyph svg { width: 27px; height: 27px; stroke-width: 1.1; }
body[data-page="studio"] .upload-zone strong { font-size: 14px; font-weight: 500; letter-spacing: -.3px; }
body[data-page="studio"] .upload-zone .upload-invite { font: 10px/1.6 "DressRoom UI", sans-serif; }
body[data-page="studio"] .upload-zone .upload-formats { font: 9px "DressRoom UI", sans-serif; margin-top: 12px; color: var(--muted); opacity: .8; }
body[data-page="studio"] .upload-zone.has-image { border-style: solid; padding: 0; }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 12px; }
.paste-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 11px; background: var(--glass); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 10px; }
.paste-button svg { width: 13px; height: 13px; stroke-width: 1.3; }
.paste-button:hover { border-color: var(--muted); }
.upload-actions .text-button { font-size: 10px; min-height: 36px; gap: 6px; white-space: nowrap; }
.upload-actions .text-button svg { width: 12px; height: 12px; }
p.upload-caption { display: block; min-height: 0; padding: 0; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.6; }
body[data-page="studio"] .studio-controls { margin-top: 20px; padding: 0; border: 0; align-items: center; gap: 28px; }
.consent-copy { flex: 1; max-width: 560px; }
.studio-controls .consent { font-size: 10px; line-height: 1.75; color: var(--muted); max-width: none; }
.consent input { accent-color: var(--ink); }
.processing-details { display: block; margin: 6px 0 0 25px; padding: 0; min-height: 22px; color: var(--muted); font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.studio-controls .primary { min-width: 280px; min-height: 51px; }
body[data-page="studio"] .studio-caption { font-size: 9px; line-height: 1.6; margin-top: 14px; }
.connection-note { border-radius: 9px; border-color: var(--line); font-size: 11px; }

/* Clothes stay central; typography and controls share one quiet scale. */
body[data-page="catalog"] main { max-width: 1240px; padding-top: 32px; }
.catalog-masthead { margin-bottom: 30px; }
.catalog-eyebrow { font-family: "DressRoom UI", sans-serif; font-size: 8px; letter-spacing: 1.6px; margin-bottom: 13px; }
.catalog-intro h1 { font: 520 clamp(43px, 5.2vw, 65px)/1.04 "DressRoom UI", sans-serif; letter-spacing: -.06em; }
.catalog-intro p { font-size: 12px; }
.catalog-total, body[data-page="catalog"] .collection-heading > span { font-family: "DressRoom UI", sans-serif; }
body[data-page="catalog"] .simple-search { border-radius: 12px; }
.catalog-tabs button { font-family: inherit; font-size: 12px; }
body[data-page="catalog"] .catalog-brands button { border-radius: 8px; }
.product-image, [data-theme="dark"] .product-image, body[data-page="catalog"] .product-image { border-radius: 13px; }
.product-brand, [data-theme="dark"] .product-brand { font-family: "DressRoom UI", sans-serif; font-size: 9px; letter-spacing: .65px; }
.product-meta h3 { font-family: "DressRoom UI", sans-serif; }
.try-button, body[data-page="catalog"] .try-button { border-radius: 8px; }
.save-button, [data-theme="dark"] .save-button, body[data-page="catalog"] .save-button { border-radius: 10px; }
.profile-subscription, .profile-card, .appearance-settings, .plan-card, .trial-card, .telegram-entry, .support-sidebar, .support-conversation { border-radius: 15px; background: var(--glass); border: 1px solid var(--line); box-shadow: none; }
.profile-subscription h2 { font-family: "DressRoom UI", sans-serif; font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.7px; }
.profile-card h2 { font-size: 21px; font-weight: 500; }
.profile-avatar { border-radius: 14px; width: 56px; height: 56px; border: 1px solid var(--line); background: var(--panel); }
.profile-stats strong { font-family: "DressRoom UI", sans-serif; font-size: 32px; font-weight: 450; letter-spacing: -1px; }
.profile-settings > div { border-color: var(--line); }
.theme-options button { border-radius: 9px; font-size: 11px; }
.telegram-entry .secondary, .trial-card .secondary { border-radius: 9px; }
.saved-tabs button { font-family: "DressRoom UI", sans-serif; font-size: 12px; border-radius: 8px; }
.plan-topline h2 { font-family: "DressRoom UI", sans-serif; font-size: 17px; font-weight: 500; }
.plan-price { font-family: "DressRoom UI", sans-serif; font-size: 47px; font-weight: 500; letter-spacing: -2px; }
.plan-price > span { font-size: 17px; letter-spacing: 0; }
.plan-price > .plan-coming { font-size: 26px; font-weight: 450; letter-spacing: -.7px; color: var(--muted); }
.empty-state h2, .result-title h2, .support-conversation-head h2 { font-family: "DressRoom UI", sans-serif; font-size: 29px; font-weight: 500; letter-spacing: -1px; }
.empty-state p { font-size: 12px; line-height: 1.8; }
.result-eyebrow { font-family: "DressRoom UI", sans-serif; }
#dialog { border-radius: 17px; background: var(--paper); }
#dialog::backdrop { background: #0b0d1073; backdrop-filter: blur(9px); }
.product-detail .detail-copy h2 { font-family: "DressRoom UI", sans-serif; font-size: 30px; font-weight: 500; letter-spacing: -1px; }
:fullscreen { background: var(--paper); }
@media (max-width: 850px) {
  body[data-page="studio"] .studio-meta { gap: 10px; }
  .clipboard-hint { display: none; }
}
@media (max-width: 650px) {
  .site-header, [data-theme="dark"] .site-header { height: 58px; width: calc(100% - 24px); margin-top: 10px; padding: 0 10px; border-radius: 13px; grid-template-columns: auto 1fr; }
  .header-tools { gap: 3px; }
  .header-tools .icon-button { width: 31px; min-width: 31px; height: 36px; }
  .brand-symbol { width: 24px; height: 29px; }
  main { padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px)); }
  body[data-page="studio"] main { padding-top: 24px; }
  .studio-eyebrow { margin-bottom: 18px; }
  .studio-eyebrow > span { font-size: 8px; letter-spacing: 1.4px; }
  .studio-help { font-size: 9px; }
  body[data-page="studio"] .studio-heading h1 { font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -.055em; line-height: 1.12; }
  .studio-lead { font-size: 11px; line-height: 1.7; margin-top: 13px; }
  .desktop-break { display: none; }
  .studio-meta { margin: 20px 0 14px; }
  body[data-page="studio"] .trial-strip { width: 100%; justify-content: space-between; gap: 9px; font-size: 9px; }
  .trial-strip > span { padding: 8px 10px; }
  .trial-strip .text-button { font-size: 9px; }
  body[data-page="studio"] .studio-grid { gap: 10px; }
  body[data-page="studio"] .upload-panel { padding: 10px; border-radius: 12px; }
  .upload-panel-title { gap: 6px; margin-bottom: 10px; }
  .upload-panel-title h2 { font-size: 9px; }
  .upload-panel-title > span:first-child { font-size: 8px; }
  .upload-ready { font-size: 0; }
  body[data-page="studio"] .upload-zone { height: 175px; padding: 10px; border-radius: 7px; gap: 6px; }
  .upload-glyph { width: 43px; height: 43px; border-radius: 12px; margin-bottom: 6px; }
  .upload-glyph svg { width: 23px; height: 23px; }
  body[data-page="studio"] .upload-zone strong { font-size: 11px; }
  body[data-page="studio"] .upload-zone .upload-invite { font-size: 9px; max-width: 125px; }
  body[data-page="studio"] .upload-zone .upload-formats { font-size: 7px; margin-top: 7px; }
  .upload-actions { flex-wrap: wrap; margin-top: 9px; gap: 2px; }
  .paste-button { font-size: 9px; min-height: 33px; padding: 0 7px; gap: 5px; width: 100%; }
  .paste-button svg { width: 12px; }
  .upload-actions .text-button { justify-content: center; width: 100%; min-height: 28px; font-size: 9px; }
  p.upload-caption { font-size: 8px; margin-top: 8px; }
  body[data-page="studio"] .studio-controls { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; padding: 0; }
  .studio-controls .primary { min-width: 0; width: 100%; min-height: 49px; font-size: 12px; order: -1; }
  .consent-copy { width: 100%; }
  .studio-controls .consent { font-size: 9px; }
  .processing-details { font-size: 9px; }
  body[data-page="studio"] .studio-caption { font-size: 8px; }
  .page-title h1 { font-size: 32px; }
  .page-title p { font-size: 11px; }
  .profile-subscription h2 { font-size: 23px; }
  .catalog-intro h1 { font-size: 44px; }
  .catalog-eyebrow { font-size: 7px; }
  .catalog-total { top: -41px; }
  .catalog-intro p { font-size: 10px; max-width: 200px; }
  .result-title h2 { font-size: 26px; }
  .mobile-nav, [data-theme="dark"] .mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 4px; position: fixed; left: 50%; right: auto; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); height: 64px; min-height: 64px; box-sizing: border-box; margin: 0; padding: 5px; bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 86%, transparent); border: 1px solid var(--glass-edge); border-radius: 15px; box-shadow: 0 8px 25px #00000021, inset 0 1px 0 #ffffff0a; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .mobile-nav button { width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 5px 0; margin: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; color: var(--muted); box-sizing: border-box; }
  .mobile-nav button.active, [data-theme="dark"] .mobile-nav button.active { color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
  .mobile-nav svg { width: 17px; height: 17px; stroke-width: 1.3; }
  .mobile-nav span { font: 9px "DressRoom UI", sans-serif; line-height: 1; }
}
@media (max-width: 360px), (max-height: 700px) and (max-width: 650px) {
  body[data-page="studio"] main { padding-top: 16px; }
  .studio-eyebrow { display: none; }
  .studio-lead { display: none; }
  body[data-page="studio"] .studio-heading h1 { font-size: 29px; }
  .studio-lead { margin-top: 9px; font-size: 10px; }
  .studio-meta { margin-top: 12px; margin-bottom: 12px; }
  body[data-page="studio"] .upload-zone { height: 145px; }
  .upload-glyph { width: 33px; height: 33px; margin: 0; border-radius: 10px; }
  .upload-glyph svg { width: 20px; height: 20px; }
  p.upload-caption { display: none; }
  .upload-panel-title h2 { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Documents stay easy to find without occupying the main fitting flow. */
.app-legal-footer{width:min(1120px,calc(100% - 40px));margin:24px auto 100px;display:flex;justify-content:center;flex-wrap:wrap;gap:12px 22px;font-size:11px;color:var(--muted,#9b9ba2)}
.app-legal-footer a{color:inherit;text-decoration:none;line-height:1.7}
.app-legal-footer a:hover{text-decoration:underline;text-underline-offset:4px}
