/* Diamond Edit AI — mobile-first editing ergonomics v0.9
   Keeps Grupo Diamond palette and desktop features; repositions controls for portrait phones. */
.photo-mobile-dock,.editor-mobile-back{display:none}
.photo-tool-section{display:block}
.media-diamond-icon{position:absolute;right:8px;top:8px;display:flex;align-items:center;gap:2px;background:#080b13c9;color:#f6d091;border:1px solid #dcac5c69;border-radius:20px;padding:1px 7px 1px 3px;font-size:11px;font-weight:800;backdrop-filter:blur(8px)}
.media-diamond-icon img{width:26px;height:26px;object-fit:contain}
@media(max-width:620px){
  /* The important third option (Diamond AI) remains visible on the second screen. */
  .chooser-page-premium{justify-content:flex-start;gap:5px;padding:12px 12px 18px!important;min-height:100dvh}
  .chooser-showcase{min-height:88px!important;height:88px;flex:0 0 88px;width:100%;margin:0 0 4px}
  .chooser-showcase-copy{padding:11px 13px!important}
  .chooser-showcase-copy span{font-size:8px;letter-spacing:1px;margin-bottom:3px}
  .chooser-showcase-copy strong{font-size:19px!important;margin-bottom:3px}
  .chooser-showcase-copy small{font-size:10px;line-height:1.25;max-width:235px}
  .chooser-halo{width:66px!important;height:66px!important;flex:0 0 66px;margin:3px 0 0!important}
  .chooser-halo img{height:67px!important;width:67px!important}
  .chooser-wordmark{font-size:19px!important;letter-spacing:2px;line-height:1!important;margin-top:1px}
  .chooser-wordmark span{font-size:16px!important;letter-spacing:2px}
  .chooser-kicker{font-size:8px;letter-spacing:1.35px;margin:3px 0 6px!important}
  .chooser-page h1{font-size:25px!important;line-height:1.08;margin:4px 0!important}
  .chooser-intro{font-size:11px;line-height:1.35;margin:3px 0 9px!important;max-width:370px}
  .mode-options-triple{display:flex;flex-direction:column;gap:9px!important;width:100%}
  .mode-card.media-card{height:130px!important;min-height:130px!important;display:grid!important;grid-template-columns:34% minmax(0,1fr);grid-template-rows:1fr;align-items:center;padding:0!important;border-radius:16px!important;gap:0!important}
  .media-card .mode-media{width:100%;height:100%!important;min-height:0;border:0;border-right:1px solid #d8a65d44}
  .media-card .mode-info{align-self:center;justify-content:center;padding:9px 12px!important;gap:4px;max-width:100%;min-width:0}
  .media-card .mode-info strong{font-size:17px;line-height:1.12}
  .media-card .mode-info small{font-size:10px;line-height:1.3}
  .media-card .mode-info em{font-size:10px;padding-top:2px}
  .media-badge{font-size:8px;padding:4px 6px;left:6px;bottom:7px}
  .media-overlay-play{width:28px;height:28px;top:8px;right:8px;font-size:12px}
  .media-diamond-icon{right:4px;top:5px;padding:1px 4px 1px 1px;font-size:8px}
  .media-diamond-icon img{width:21px;height:21px}
  .chooser-diamond-signature{margin:4px 0 0;height:32px}
  .chooser-diamond-signature img{width:43px;height:43px}
  .chooser-footer{margin-top:2px;font-size:8px;line-height:1.4}
  .chooser-footer small{font-size:8px}

  /* Both editors keep preview above a fixed, immediately accessible tool dock. */
  .mode-photo .content-shell,.mode-editor .content-shell{min-width:0}
  .mode-photo main{padding:10px 10px calc(42dvh + 20px)!important;min-height:100dvh}
  .photo-heading{margin-bottom:5px}
  .photo-heading .btn{min-height:33px;padding:6px 9px;font-size:10px}
  .photo-heading .mini-tag{padding:5px 8px;font-size:8px}
  .photo-page-header{margin-bottom:9px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px}
  .photo-page-header .eyebrow{font-size:8px;margin:0 0 3px;letter-spacing:.9px}
  .photo-page-header h1{font-size:20px!important;margin:0!important}
  .photo-page-header p:not(.eyebrow){display:none}
  .photo-page-header .btn{width:auto!important;min-height:37px;padding:7px 11px;font-size:11px;white-space:nowrap}
  .photo-stage{padding:8px!important;border-radius:14px!important}
  .photo-stage-header{font-size:10px;letter-spacing:.6px;margin-bottom:6px}
  .photo-stage-view{height:min(44dvh,395px);min-height:180px!important;padding:4px;max-height:395px}
  .photo-stage-view canvas{max-height:calc(min(44dvh,395px) - 12px)!important;max-width:100%}
  .photo-empty-content{padding:10px 15px}
  .photo-empty-content .photo-placeholder{font-size:29px}
  .photo-empty-content strong{font-size:16px}
  .photo-empty-content p{font-size:11px;max-width:235px}
  .photo-empty-content .btn{min-height:35px;font-size:11px}
  .photo-stage-actions{margin-top:8px!important;display:flex!important;flex-wrap:nowrap;gap:7px}
  .photo-stage-actions .btn{flex:1;min-height:36px;font-size:10px;padding:6px 8px}
  .photo-stage-actions .btn:first-child{flex:1.1}
  .photo-properties{position:fixed;z-index:26;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;max-height:clamp(150px,28dvh,280px);min-height:150px;overflow-y:auto;overscroll-behavior:contain;border-radius:17px 17px 0 0!important;border:1px solid #ae824d!important;border-bottom:0!important;padding:13px 14px!important;background:linear-gradient(145deg,#111b29,#05080e)!important;box-shadow:0 -17px 44px #000b}
  .photo-properties>h3,.photo-properties>p,.photo-properties .photo-tabs,.photo-properties>.inline-details{display:none!important}
  .photo-properties .photo-tool-section{display:none}
  .photo-properties .photo-tool-section.mobile-active{display:block}
  .photo-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0!important}
  .photo-preset span{height:35px}
  .photo-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 13px}
  .photo-properties .ctrl{margin-bottom:8px}
  .photo-properties .ctrl label{font-size:11px}
  .photo-transform{margin:2px 0 9px}
  .photo-transform .btn{min-height:44px;font-size:11px}
  .photo-mobile-dock{position:fixed;z-index:27;left:0;right:0;bottom:0;height:calc(64px + env(safe-area-inset-bottom));background:#05080cf9;border-top:1px solid #c49a5b66;box-shadow:0 -7px 24px #0007;display:flex;align-items:flex-start;justify-content:space-around;padding:6px 4px env(safe-area-inset-bottom)}
  .photo-mobile-dock button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;flex:1;height:53px;min-height:0;color:#aeb9c8;background:transparent;border:1px solid transparent;border-radius:9px;padding:3px 1px}
  .photo-mobile-dock button span{font-size:21px;font-weight:500;line-height:1.05}
  .photo-mobile-dock button small{font-size:10px}
  .photo-mobile-dock button.active{background:#251c13;border-color:#9f7745;color:#f3cb83}
  .photo-mobile-dock button:last-child{color:#f4c785}

  /* Video editing: previews and timeline above, professional controls attached to bottom. */
  .shell.mode-editor{padding-bottom:0!important}
  .mode-editor .sidebar{display:none!important}
  .mode-editor .topbar{height:42px;padding:0 10px;position:relative}
  .mode-editor .topbar-title{font-size:10px}
  .mode-editor .topbar .user-avatar,.mode-editor .topbar .icon-button,.mode-editor .topbar .share-app-btn{display:none}
  .mode-editor main{padding:7px 9px calc(min(39dvh,355px) + 28px)!important}
  .editor-mobile-back{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:34px;min-height:34px;border-radius:9px;border:1px solid #b38c54;background:#161716;color:#e9bd7b;font-size:23px}
  .editor-top{margin-bottom:7px;gap:5px}
  .editor-top-left{flex:1;min-width:0!important;width:auto!important;gap:6px}
  .editor-top-left .gold{display:none}
  .editor-top-left input{width:100%;min-width:0;max-width:none!important;min-height:35px!important;font-size:12px;padding:7px 9px}
  .editor-actions{flex-wrap:nowrap;gap:5px}
  .editor-actions .btn{font-size:10px;min-height:35px;padding:6px 9px;white-space:nowrap}
  .editor-layout{display:flex;flex-direction:column;gap:7px}
  .stage-panel,.timeline-panel{padding:7px!important;border-radius:12px}
  .stage-header{margin:0 0 4px;font-size:10px}
  .stage-header select{font-size:10px;min-height:29px;padding:5px}
  .preview-area{height:min(46dvh,410px);max-height:410px;min-height:180px!important;padding:3px;border-radius:10px}
  .preview-area canvas{max-height:calc(min(46dvh,410px) - 7px)!important;max-width:100%;object-fit:contain}
  .preview-empty-content{gap:8px;padding:11px 17px}
  .preview-empty-content .drop-icon{font-size:28px}
  .preview-empty-content h3{font-size:17px}
  .preview-empty-content p{font-size:11px;line-height:1.35;max-width:275px}
  .preview-empty-content .btn{min-height:34px;font-size:11px}
  .transport{margin-top:6px!important}
  .transport button{min-height:33px}
  .seek-row{margin-top:2px!important}
  .timeline-panel{margin-top:0!important}
  .timeline-help{display:none}
  .timeline-top{font-size:10px}
  .timeline-track{min-height:35px}
  .properties-panel{position:fixed!important;bottom:0;left:0;right:0;z-index:26;width:100%;height:auto;max-height:min(39dvh,355px);min-height:155px;border-radius:17px 17px 0 0!important;border:1px solid #b48a4f!important;border-bottom:0!important;padding:8px 9px calc(env(safe-area-inset-bottom) + 2px)!important;display:flex;flex-direction:column;background:#070c13!important;box-shadow:0 -15px 55px #000c}
  .properties-panel>h3,.properties-panel>.properties-footer{display:none}
  .properties-panel #control-panel{order:1;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:5px 7px 13px}
  .properties-panel .tab-row{order:2;position:relative;display:flex;flex:0 0 64px;overflow-x:auto;gap:5px;padding:7px 2px 2px;margin:0;border-top:1px solid #b48a4f63;scrollbar-width:none}
  .properties-panel .tab-row::-webkit-scrollbar{display:none}
  .properties-panel .tab-row .tab{min-width:67px;width:67px;flex:0 0 67px;min-height:48px;padding:5px 3px;border-radius:9px}
  .properties-panel .tab-row .tab span{font-size:18px}
  .properties-panel .tab-row .tab small{font-size:10px}
  .properties-panel .ctrl{margin-bottom:12px}
  .properties-panel .ctrl label{font-size:11px}
  .properties-panel .panel-heading{margin-bottom:8px}
  .properties-panel .music-presets{grid-template-columns:1fr 1fr}
  .properties-panel .music-choice{min-height:54px}
  .mode-editor .mobile-tools{display:none}
  .mode-editor .modal-backdrop{z-index:100}
}
@media(max-width:370px){
  .chooser-page-premium{padding:8px 8px 14px!important}
  .mode-card.media-card{height:118px!important;min-height:118px!important}
  .chooser-halo{height:54px!important;width:54px!important;flex-basis:54px!important}
  .chooser-halo img{height:55px!important;width:55px!important}
  .photo-control-grid{grid-template-columns:1fr}
  .editor-actions .btn{padding:5px 6px}
}
@media(prefers-reduced-motion:reduce){.chooser-showcase-image,.mode-media video,.preview-demo-video,.photo-demo-video{animation:none}}


/* --- v0.10 mobile cleanup --- */
@media(max-width:620px){
  .chooser-page-clean{padding-top:16px!important}
  .chooser-page-clean .chooser-halo{margin-top:10px!important}
  .chooser-page-clean .media-overlay-play,.chooser-page-clean .media-overlay-play-center{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:34px;height:34px;font-size:14px}
  .mode-card.video-mode .media-badge{display:none!important}
  .ai-assistant-hero-clean .ai-assistant-copy{padding:16px!important}
  .ai-chip-row{margin-bottom:10px}
  .ai-chip{font-size:10px;padding:7px 10px}
  .preview-area{height:min(35dvh,300px)!important;max-height:300px!important;min-height:165px!important}
  .preview-area canvas{max-height:calc(min(35dvh,300px) - 7px)!important}
  .photo-stage-view{height:min(34dvh,290px)!important;max-height:290px!important;min-height:170px!important}
  .photo-stage-view canvas{max-height:calc(min(34dvh,290px) - 10px)!important}
  .properties-panel{max-height:min(42dvh,375px)!important}
  .photo-properties{max-height:clamp(160px,30dvh,290px)!important}
}
