/* GD Auto Studio shared UI. Loaded last; job states, API fields and media outputs are unchanged. */
@font-face { font-family: "GD Studio Thai"; src: url("./assets/fonts/NotoSansThai-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
:root { --navy: #071936; --deep-blue: #08386a; --blue: #087afa; --light-blue: #edf6ff; --ink: #0a1938; --bg: #f5faff; --surface: #fff; --text: #152744; --muted: #647b9a; --border: #dce8f5; --shadow: 0 8px 30px #1d5c9d08; --studio-radius: 18px; }
body { font-family: "GD Studio Thai", Tahoma, ui-sans-serif, sans-serif; background: #f5faff; color: var(--text); line-height: 1.65; }
button, input, textarea, select { font-family: inherit; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #096be9; outline-offset: 3px; }
.app-shell { grid-template-columns: 232px minmax(0, 1fr); background: linear-gradient(120deg, #f8fcff, #f2f8ff); }
body[data-page="auth"] .app-shell { display: none; }
.main { width: 100%; max-width: 1600px; min-width: 0; padding: 24px 30px 48px; }
#app, #app > *, #app form, #app section, #app article { min-width: 0; }
#app img, #app video, #app audio { max-width: 100%; }
.sidebar { gap: 26px; padding: 27px 17px 20px; background: linear-gradient(175deg, #04172b, #092b4b); border-right: 1px solid #173854; overflow-y: auto; }
.sidebar .brand { gap: 9px; padding: 0 4px; }
.sidebar .brand-logo { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #1f5773; box-shadow: none; }
.sidebar .brand strong { color: #fff; font-size: 15px; white-space: nowrap; }
.sidebar .brand small { font-size: 10px; color: #a9c3da; }
.nav-stack { gap: 7px; }
.nav-stack a { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 13px; border-radius: 10px; color: #bcd0e4; font-size: 14px; font-weight: 600; }
.nav-stack a.active, .nav-stack a:hover { background: linear-gradient(100deg, #0d5aa2, #0b3454); color: #fff; box-shadow: none; }
.studio-icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.support-panel { margin-top: auto; padding: 15px 13px; border: 1px solid #23516c; border-radius: 12px; background: #12344a70; }
.support-panel .label { color: #39c3fb; font-size: 12px; }
.support-panel p { margin: 4px 0 13px; color: #b6c9dc; font-size: 11px; line-height: 1.8; }
.support-panel .btn { min-height: 40px; font-size: 12px; background: #edfaff; color: #06345d; border: 0; }
.topbar { position: relative; display: flex; flex-direction: row; align-items: center; gap: 16px; min-height: 50px; margin-bottom: 24px; }
.topbar > div:first-child { min-width: 0; }
.topbar h1 { font-size: 22px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.topbar-actions { gap: 12px; flex-shrink: 0; }
.topbar .gd-new-work { min-height: 42px; padding: 9px 15px; font-size: 13px; }
.topbar .membership-badge { min-height: 28px; padding: 3px 9px; font-size: 11px; }
.studio-account { position: relative; }
.studio-account summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 3px; border-radius: 10px; color: #25426c; cursor: pointer; list-style: none; font-size: 12px; }
.studio-account summary::-webkit-details-marker { display: none; }
#studioAccountName { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #d4f1ff, #94c8ff); color: #086cda; font-weight: 800; font-size: 17px; }
.studio-account-menu { position: absolute; z-index: 100; right: 0; top: calc(100% + 6px); display: grid; min-width: 190px; padding: 7px; border: 1px solid var(--border); border-radius: 13px; background: #fff; box-shadow: 0 15px 40px #092a541c; }
.studio-account-menu a, .studio-account-menu button { min-height: 44px; padding: 11px 13px; border: 0; border-radius: 8px; background: #fff; text-align: left; color: #23446f; font: inherit; font-size: 13px; cursor: pointer; }
.studio-account-menu a:hover, .studio-account-menu button:hover { background: #f0f7ff; }
.studio-account-menu #logoutBtn { color: #b64040; }
.studio-breadcrumb { margin: -8px 0 17px; font-size: 12px; color: #92a2b7; }
.studio-breadcrumb a { color: #6b7e98; }
.studio-breadcrumb span { color: var(--blue); }
.btn { min-height: 44px; border-radius: 10px; padding: 10px 17px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.btn-primary { color: #fff; background: linear-gradient(115deg, #05b9f3, #0875fa); border: 1px solid #099ff0; box-shadow: 0 5px 13px #0785f41c; }
.btn-primary:hover { background: linear-gradient(115deg, #009fdc, #0867e0); }
.btn-soft, .btn-ghost { color: #165898; background: #f7fbff; border: 1px solid #d9e8f7; box-shadow: none; }
.btn-soft:hover, .btn-ghost:hover { background: #edf6ff; border-color: #adcef2; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .5; }
.card { border: 1px solid var(--border); border-radius: var(--studio-radius); padding: 23px; background: #fff; box-shadow: var(--shadow); }
.stat-card { position: relative; min-height: 130px; padding: 21px; background: #fff; }
.stat-card .label { max-width: calc(100% - 39px); color: #526b8d; font-size: 12px; }
.stat-card > strong { display: block; margin: 8px 0 4px; color: #0d2045; font-size: 28px; line-height: 1.3; }
.stat-card .muted { font-size: 11px; line-height: 1.65; }
.studio-stat-icon { position: absolute; top: 17px; right: 15px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #1980df; background: #ecf7ff; }
.studio-overview .stat-card:first-child .studio-stat-icon { background: #fff7dd; color: #df9b00; }
.studio-overview .stat-card:nth-child(2) .studio-stat-icon { background: #e4f8ed; color: #22a96b; }
.grid { gap: 16px; }
.section-title { margin: 24px 0 14px; align-items: center; gap: 12px; }
.section-title h2 { color: #10234a; font-size: 20px; line-height: 1.5; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.eyebrow, .label { letter-spacing: 0; color: #6184af; font-size: 11px; }
.membership-badge, .status-badge { border: 1px solid #cfe2f6; border-radius: 999px; background: #f0f7ff; color: #2660a4; font-size: 12px; }
.studio-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 22px; }
.studio-welcome h2 { margin: 0 0 4px; font-size: 25px; line-height: 1.5; color: #0b1c40; }
.studio-welcome p { margin: 0; color: #6d81a2; font-size: 13px; }
.studio-start-banner { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 22px; padding: 30px; border: 1px solid #dcecff; border-radius: 17px; background: radial-gradient(ellipse at 80% 0, #d7e8ff, transparent 60%), linear-gradient(110deg, #e5f3ff, #f2faff); overflow: hidden; }
.studio-start-banner h2 { margin: 0 0 9px; color: #10295b; font-size: 27px; line-height: 1.5; }
.studio-start-banner p { margin: 0; color: #5377a9; font-size: 13px; }
.studio-start-banner .eyebrow { margin-bottom: 5px; color: #4e85c2; }
.studio-start-banner .hero-actions { margin-top: 20px; }
.studio-banner-art { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 170px; height: 150px; }
.studio-banner-art .gd-tool-art { width: 155px; height: 155px; transform: rotate(-5deg); filter: drop-shadow(0 12px 10px #3277d32b); }
.studio-sparkle { position: absolute; top: -6px; right: -5px; color: #f6bc24; font-size: 34px; }
.recent-tools-panel { margin: 22px 0; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.recent-tools-panel .section-title { margin: 0 0 10px; }
.recent-tools-panel .eyebrow { display: none; }
.recent-tools-panel .recent-tools-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.recent-tool-card { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 12px 3px; border: 0; border-bottom: 1px solid #edf2f8; border-radius: 0; background: #fff; box-shadow: none; }
.recent-tool-card:last-child { border-bottom: 0; }
.recent-tool-card:hover { background: #f7fbff; transform: none; }
.recent-tool-icon { display: grid; place-items: center; flex-shrink: 0; width: 58px; min-height: 58px; padding: 0; border-radius: 12px; background: #f0f7ff; }
.recent-tool-icon .gd-tool-art { width: 53px; height: 53px; }
.recent-tool-copy { flex: 1; display: grid; gap: 2px; }
.recent-tool-copy strong { color: #10244b; font-size: 14px; }
.recent-tool-copy small, .recent-tool-copy em { color: #6b82a2; font-size: 11px; font-style: normal; }
.recent-tool-empty { padding: 20px; border: 1px dashed #d3e4f5; border-radius: 13px; background: #f9fcff; text-align: center; }
.recent-tool-empty strong { color: #48658d; font-size: 14px; }
.recent-tool-empty p { color: var(--muted); font-size: 12px; }
.studio-learning-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.studio-learning-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #084785, #087ff8); }
.studio-learning-1 { background: linear-gradient(135deg, #1a4867, #5185b4); }
.studio-learning-2 { background: linear-gradient(135deg, #22415d, #347a8f); }
.studio-learning-card > span { font-size: 13px; color: #c7eaff; }
.studio-learning-card h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.studio-learning-card p { flex: 1; margin: 0 0 12px; color: #c7dff5; font-size: 11px; }
.studio-learning-card > div { display: flex; align-items: center; justify-content: space-between; }
.studio-learning-card .membership-badge { color: #fff; background: #ffffff20; border-color: #ffffff40; font-size: 10px; }
.studio-helper-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin-top: 24px; border: 1px solid var(--border); border-radius: 15px; background: #edf6ff; }
.studio-helper-strip > div { display: flex; align-items: center; gap: 14px; }
.studio-helper-strip .studio-icon { color: #1285ed; width: 32px; height: 32px; }
.studio-helper-strip strong, .studio-helper-strip small { display: block; }
.studio-helper-strip strong { font-size: 13px; }
.studio-helper-strip small { margin-top: 3px; color: #607fa8; font-size: 11px; }
.studio-catalog-banner h2 { color: #0759d7; }
.ai-tool-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0; margin: 20px 0; border: 0; background: none; box-shadow: none; }
.ai-tool-search { display: flex; align-items: center; gap: 10px; flex: 1 0 100%; padding: 0 14px; min-height: 49px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: #6b8bb1; }
.ai-tool-search input { min-width: 0; width: 100%; min-height: 47px; padding: 9px 0; border: 0 !important; border-radius: 9px; background: transparent; font-size: 13px; }
.ai-tool-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-tool-filters button { min-height: 40px; padding: 8px 17px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #48658c; font-size: 12px; }
.ai-tool-filters button.active { color: #fff; background: #0b254d; border-color: #0b254d; box-shadow: none; }
.ai-tool-result-count { margin-left: auto; color: #7d90a9; font-size: 11px; }
.ai-tool-catalog.studio-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.studio-catalog .studio-tool-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: visible; }
.studio-catalog .studio-tool-card:hover { border-color: #9fcdf7; transform: none; box-shadow: 0 8px 25px #2467a60b; }
.studio-catalog-intro { display: flex; align-items: center; gap: 17px; }
.studio-catalog-intro .gd-tool-art { flex-shrink: 0; width: 92px; height: 92px; }
.studio-catalog-intro h3 { margin: 0 0 5px; color: #0b2149; font-size: 22px; }
.studio-catalog-intro p { margin: 0; color: #5c769c; font-size: 13px; }
.studio-catalog-intro small { color: #8497af; font-size: 10px; }
.studio-capability-list { display: grid; gap: 9px; flex: 1; list-style: none; margin: 0; padding: 0; }
.studio-capability-list li { display: flex; align-items: center; gap: 9px; color: #5b7296; font-size: 13px; line-height: 1.65; }
.studio-capability-list li > span { display: grid; place-items: center; flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%; background: #02b5ed; color: #fff; font-size: 12px; }
.studio-catalog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; }
.studio-catalog-actions .gd-tool-details { min-height: 44px; color: #075dd4; text-decoration: underline; text-underline-offset: 4px; }
.studio-catalog-actions .gd-tool-primary { min-height: 44px; min-width: 132px; padding: 9px 18px; font-size: 13px !important; }
.studio-coming-label { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: #f0f4f8; color: #718399; font-size: 11px; }
.studio-catalog .is-coming { opacity: .75; }
.studio-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; margin-bottom: 22px; border: 1px solid #d9eafd; border-radius: 17px; background: linear-gradient(110deg, #e7f3ff, #f4fbff); }
.studio-page-intro h2 { margin: 0 0 6px; font-size: 25px; color: #133868; }
.studio-page-intro p { margin: 0; font-size: 13px; color: #6481a7; }
.studio-page-intro > .studio-icon { width: 52px; height: 52px; color: #169af0; }
.profile-card .avatar { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border: 5px solid #f1f9ff; border-radius: 50%; background: linear-gradient(135deg, #c4f0ff, #83bfff); color: #0758b6; font-size: 30px; }
.profile-card h2 { overflow-wrap: anywhere; }
.profile-card p { overflow-wrap: anywhere; }
.main :is(.hero-band, .product-review-hero, .video-editor-hero, .voice-subtitle-hero, .master-hero, .story-creator-head, .projects-hero, .super-admin-hero) { min-height: 0; margin-bottom: 22px; padding: 27px; border: 1px solid #dbeafa; border-radius: 18px; background: linear-gradient(115deg, #e7f3ff, #f7fcff); box-shadow: none; color: #123764; }
.main :is(.hero-band, .product-review-hero, .video-editor-hero, .voice-subtitle-hero, .master-hero, .story-creator-head, .projects-hero, .super-admin-hero) h2 { color: #102b58; font-size: 27px; line-height: 1.5; letter-spacing: -.4px; }
.main :is(.hero-band, .product-review-hero, .video-editor-hero, .voice-subtitle-hero, .master-hero, .story-creator-head, .projects-hero, .super-admin-hero) p { color: #6480a4; font-size: 13px; line-height: 1.8; }
.main :is(.voice-subtitle-status, .master-status, .product-review-hero-badge) { color: #15538d; background: #ffffffc9; border: 1px solid #dbe8f6; border-radius: 14px; }
.main :is(.voice-subtitle-status, .master-status, .product-review-hero-badge) strong { color: #185bb6; }
.main :is(.voice-subtitle-status, .master-status) > span { color: #6584a9; }
.video-kicker > span, .video-trust-row span { color: #3974ad; background: #ffffffb8; border: 1px solid #d2e6f7; }
.product-review-steps { gap: 8px; margin: 20px 0; }
.product-review-steps li { border: 1px solid #e0ebf6; border-radius: 11px; background: #fff; color: #7186a1; }
.product-review-steps li.active { border-color: #66b9fa; background: #edf7ff; color: #0b68c5; }
.product-review-page { gap: 17px; }
.main .product-review-hero { margin-bottom: 0; }
.product-review-hero a { color: #267ac4; }
.product-review-hero-badge { width: 130px; height: 130px; box-shadow: none; }
.product-review-steps { margin: 0; }
.main :is(.product-review-panel, .wizard-step, .voice-workbench, .voice-config-panel, .subtitle-action-card, .subtitle-script-card, .subtitle-result-card, .master-side, .master-chat-panel, .story-chat-card, .story-order-card, .detail-panel, .video-project-card) { border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.main :is(.form-grid, .product-review-form-grid) { gap: 17px; }
.main label { color: #385478; font-size: 13px; }
.main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), .main select, .main textarea { min-height: 44px; border: 1px solid #d6e4f3; border-radius: 10px; background-color: #fff; color: #1c3558; }
.main input:read-only { background: #f6faff !important; color: #5f7798 !important; }
.main textarea { line-height: 1.8; }
.main :is(.tabs, .segmented, .voice-tool-tabs, .video-area-nav, .super-admin-nav) { gap: 8px; border-color: var(--border); }
.main .tabs { overflow-x: auto; white-space: nowrap; }
.main .tabs button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #4f6d94; }
.main .tabs button.active { background: #e8f4ff; border-color: #95c7f3; color: #0965bf; }
.main table { width: 100%; border-collapse: collapse; font-size: 12px; }
.main th { padding: 13px 14px; background: #f4f9ff; color: #54749c; border-color: #e4edf6; white-space: nowrap; }
.main td { padding: 14px; border-color: #eaf1f8; color: #39577c; }
.main .table-wrap { overflow-x: auto; padding: 0; }
.main :is(.upload-dropzone, .product-review-upload, .story-image-upload) { background: #f8fcff; border-color: #c7def5; border-radius: 14px; }
.main :is(.master-note, .notice-strip) { border-radius: 12px; }
.main .master-layout { gap: 20px; }
.main :is(.master-bubble, .helper-bubble) { border-radius: 15px; }
.main .master-message.assistant .master-bubble { background: #f3f8ff; border-color: #dfeafb; color: #294b77; }
.main .master-message.user .master-bubble { background: #e5f3ff; color: #194c88; border-color: #c7e4fc; }
.main :is(.subtitle-preview-stage, .transcript-player, .story-result-box, .phone-frame) { border-radius: 14px; }
.main .agent-prompt-card, .main .super-admin-panel { border-radius: 16px; border-color: var(--border); box-shadow: var(--shadow); }
/* Auth and public pages share the visual system, while keeping their own content and forms. */
.auth-screen { padding: 24px; background: radial-gradient(ellipse at 10% 15%, #d7f4ff, transparent 55%), linear-gradient(135deg, #eef7ff, #f9fcff); overflow-y: auto; }
.auth-card { width: min(1040px, 100%); min-height: 0; border: 1px solid #d7e7f8; border-radius: 24px; box-shadow: 0 20px 70px #16457312; overflow: hidden; }
.auth-copy { padding: 40px; background: linear-gradient(155deg, #083a68, #051c37); }
.auth-copy h2 { font-size: 31px; line-height: 1.55; }
.auth-copy p { color: #b9d5ef; font-size: 14px; }
.auth-brand-stage { max-width: 220px; margin: 25px auto 0; padding: 12px; border: 1px solid #20709b; border-radius: 22px; background: #0c2d4e; }
.auth-brand-stage img { width: 100%; border-radius: 12px; }
.login-panel { padding: 45px; background: #fff; }
.login-panel h3 { font-size: 28px; color: #0b2850; }
.login-panel label { color: #4d6789; font-size: 13px; }
.login-panel input { min-height: 48px; border-radius: 10px; border-color: #d5e5f5; }
.login-panel .hint { color: #7e91aa; font-size: 11px; }
.gd-landing { background: #f7fbff; }
.gd-landing-nav { border-bottom: 1px solid #e0ebf7; background: #ffffffeb; }
.gd-hero { min-height: 0; padding: 160px 50px 70px; background: radial-gradient(ellipse at 80% 20%, #dcecff, transparent 60%), linear-gradient(120deg, #e8f6ff, #f8fcff); }
.gd-hero-copy h1 { color: #0b2a59; font-size: clamp(36px, 4vw, 58px); line-height: 1.4; }
.gd-hero-copy p { color: #5a7b9f; }
.gd-logo-card { width: min(310px, 26vw); min-width: 0; border-radius: 24px; box-shadow: 0 20px 45px #0c438322; }
.gd-tool-grid .gd-mini-card, .gd-plan-grid .plan-card { border: 1px solid #dce8f6; border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.gd-workflow-section, .gd-final-cta { border: 1px solid #d6e7fa; border-radius: 20px; background: linear-gradient(115deg, #e7f4ff, #f7fcff); color: #153968; }
.gd-final-cta h2, .gd-final-cta p { color: #153968; }
.gd-tool-dialog { font-family: "GD Studio Thai", Tahoma, sans-serif; }
@media (min-width: 1800px) { .main { padding-inline: 48px; } }
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .main { padding: 22px; }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand strong { font-size: 13px; }
  .studio-catalog .studio-tool-card { padding: 19px; }
  .studio-catalog-intro { gap: 12px; }
  .studio-catalog-intro h3 { font-size: 19px; }
  .studio-catalog-intro .gd-tool-art { width: 74px; height: 78px; }
  #studioAccountName { max-width: 95px; }
}
@media (max-width: 900px) {
  .studio-welcome h2 { font-size: 22px; }
  .studio-welcome > .btn { display: none; }
  .studio-start-banner { padding: 23px; gap: 14px; }
  .studio-start-banner h2 { font-size: 23px; }
  .studio-banner-art { width: 110px; height: 110px; }
  .studio-banner-art .gd-tool-art { width: 110px; height: 110px; }
  .studio-learning-grid { grid-template-columns: 1fr; }
  .studio-catalog-actions { gap: 7px; }
  .studio-catalog-actions .gd-tool-primary { min-width: 110px; padding-inline: 10px; }
  .studio-catalog-actions .gd-tool-details { font-size: 12px !important; }
  .auth-copy { padding: 28px; }
  .auth-card { grid-template-columns: .9fr 1.1fr; }
  .login-panel { padding: 30px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 80; width: 100%; height: auto; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #1a4264; background: #061c34; overflow: visible; }
  .sidebar .brand, .sidebar .support-panel { display: none; }
  .nav-stack { display: flex; gap: 3px; width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .nav-stack a { display: flex; flex-direction: column; justify-content: center; flex: 1 0 60px; gap: 3px; min-height: 57px; padding: 7px 6px; border-radius: 9px; font-size: 10px; white-space: nowrap; }
  .nav-stack .studio-icon { width: 20px; height: 20px; }
  .main { padding: 18px 15px 105px; }
  .topbar { flex-direction: row; align-items: center; gap: 8px; margin-bottom: 19px; }
  .topbar > div:first-child { flex: 1; }
  .topbar h1 { max-width: 100%; font-size: 17px; }
  .topbar-actions { gap: 8px; }
  .topbar .membership-badge { display: none; }
  .topbar .gd-new-work { padding: 8px 10px; font-size: 11px; }
  #studioAccountName, .studio-account summary > span:last-child { display: none; }
  .studio-account summary { padding: 0; }
  .studio-welcome h2 { font-size: 21px; }
  .studio-welcome p { font-size: 12px; }
  .studio-start-banner { padding: 20px; }
  .studio-start-banner h2 { font-size: 21px; }
  .studio-start-banner p { font-size: 12px; }
  .studio-banner-art { width: 94px; height: 106px; }
  .studio-banner-art .gd-tool-art { width: 100px; height: 100px; }
  .studio-start-banner .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .studio-start-banner .btn { padding: 9px 12px; font-size: 11px; }
  .grid.studio-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .studio-overview .stat-card { min-height: 138px; padding: 14px 10px; }
  .studio-overview .studio-stat-icon { position: static; width: 27px; height: 27px; margin-bottom: 8px; }
  .studio-overview .studio-stat-icon .studio-icon { width: 18px; height: 18px; }
  .studio-overview .stat-card .label { max-width: none; font-size: 10px; }
  .studio-overview .stat-card > strong { font-size: 22px; }
  .studio-overview .stat-card .muted { font-size: 9px; }
  .recent-tools-panel { padding: 16px; }
  .section-title h2 { font-size: 18px; }
  .section-title { flex-wrap: wrap; align-items: flex-start; }
  .section-title > div:first-child { flex: 1 1 100%; }
  .section-title .hero-actions { flex-wrap: wrap; }
  .section-title > .btn { padding: 8px; font-size: 10px; }
  .recent-tool-card { gap: 10px; }
  .recent-tool-copy small { font-size: 10px; }
  .studio-learning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .studio-learning-card { padding: 13px 10px; border-radius: 12px; }
  .studio-learning-card > span { font-size: 11px; }
  .studio-learning-card h3 { font-size: 12px; }
  .studio-learning-card p { display: none; }
  .studio-helper-strip { padding: 16px; flex-direction: column; align-items: stretch; }
  .studio-helper-strip .btn { align-self: flex-end; }
  .ai-tool-catalog.studio-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .studio-catalog .studio-tool-card { padding: 16px; }
  .studio-catalog-intro { flex-direction: column; align-items: flex-start; gap: 8px; }
  .studio-catalog-intro h3 { font-size: 18px; }
  .studio-catalog-actions { flex-wrap: wrap; }
  .studio-catalog-actions .gd-tool-primary { flex: 1; }
  .main :is(.hero-band, .product-review-hero, .video-editor-hero, .voice-subtitle-hero, .master-hero, .story-creator-head, .projects-hero, .super-admin-hero) { padding: 21px; }
  .main :is(.hero-band, .product-review-hero, .video-editor-hero, .voice-subtitle-hero, .master-hero, .story-creator-head, .projects-hero, .super-admin-hero) h2 { font-size: 23px; }
  .product-review-hero-badge { display: none; }
  .studio-page-intro { padding: 22px; }
  .studio-page-intro h2 { font-size: 22px; }
  .auth-screen { padding: 14px; }
  .auth-card { display: flex; flex-direction: column; width: min(480px, 100%); }
  .login-panel { order: 0; width: 100%; padding: 28px 23px; }
  .auth-copy { order: 1; padding: 20px 23px; }
  .auth-copy h2, .auth-copy > p, .auth-brand-stage { display: none; }
  .auth-copy .brand-logo { width: 38px; height: 38px; }
  .auth-copy .brand strong { font-size: 16px; }
  .gd-hero { padding: 116px 24px 42px; }
  .gd-hero-copy h1 { font-size: 34px; }
  .gd-logo-card { width: 180px; }
}
@media (max-width: 540px) {
  .ai-tool-catalog.studio-catalog { grid-template-columns: minmax(0, 1fr); }
  .studio-catalog-intro { flex-direction: row; align-items: center; gap: 15px; }
  .studio-catalog-intro .gd-tool-art { width: 82px; height: 82px; }
  .studio-catalog-actions { flex-wrap: nowrap; }
  .studio-catalog-actions .gd-tool-primary { flex: 0 1 auto; }
  .studio-catalog-intro h3 { font-size: 21px; }
  .ai-tool-result-count { flex-basis: 100%; margin-left: 0; }
  .studio-banner-art { display: none; }
  .studio-start-banner h2 { font-size: 22px; }
  .studio-start-banner .hero-actions .btn { flex: 1; }
  .main .master-layout, .main .voice-subtitle-grid, .main .story-creator-layout, .main .detail-layout, .main .super-admin-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; } }
