
/* Naghma AI Studio V61 — Suno-style audio flow and responsive polish */
body[data-page="create"]{background:#090b0f!important;color:#f4f5f7!important}.v14-create,.v14-create>.v14-creator,.v14-create>.v14-library{background:#0a0d12!important}.v14-create>.v14-creator{border-right-color:#23262d!important}.v14-create>.v14-library{border-left:1px solid #20242b!important}
.v61-source-bar{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:0 0 10px;border:1px solid #242832;border-radius:14px;overflow:visible;background:#111318}.v61-source-main{height:54px;border:0;border-inline-end:1px solid #242832;background:transparent;color:#f3f4f6;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:800}.v61-source-main:last-of-type{border-inline-end:0}.v61-source-main span{font-size:20px;font-weight:400}.v61-source-main:hover,.v61-source-main.active{background:#1a1d23}.v61-source-menu{position:absolute;z-index:100;top:61px;left:0;width:220px;background:#222328;border:1px solid #34363d;border-radius:12px;padding:6px;box-shadow:0 24px 60px rgba(0,0,0,.55);direction:ltr}.v61-source-menu button{width:100%;min-height:54px;border:0;background:transparent;color:#fff;border-radius:8px;display:flex;gap:10px;align-items:center;text-align:left;padding:8px 10px}.v61-source-menu button:hover{background:#303238}.v61-source-menu button>span{display:grid;gap:2px}.v61-source-menu b{font-size:12px}.v61-source-menu small{font-size:9px;color:#9299a5}
/* The old five-button launcher remains in DOM for compatibility but the professional UI uses the three Suno-like source buttons. */
body[data-page="create"] .source-launcher{display:none!important}
.v61-source-attachment{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) auto 32px;gap:11px;align-items:center;min-height:78px;margin:0 0 12px;padding:7px 8px;border:1px solid #2b3039;border-radius:12px;background:#17191e;direction:ltr}.v61-source-attachment[hidden]{display:none!important}.v61-source-art{width:64px;height:64px;border-radius:9px;overflow:hidden;position:relative;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#ff556c 0 10%,transparent 36%),linear-gradient(135deg,#42152f,#241948 50%,#0c3a4a)}.v61-wave-bars{display:flex;align-items:center;gap:3px;height:34px}.v61-wave-bars i{display:block;width:4px;border-radius:5px;background:rgba(255,255,255,.78)}.v61-wave-bars i:nth-child(1){height:12px}.v61-wave-bars i:nth-child(2){height:25px}.v61-wave-bars i:nth-child(3){height:34px}.v61-wave-bars i:nth-child(4){height:22px}.v61-wave-bars i:nth-child(5){height:15px}.v61-source-play{position:absolute;inset:0;margin:auto;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.72);color:#fff;font-size:14px;opacity:0;transition:.15s}.v61-source-art:hover .v61-source-play,.v61-source-attachment.is-ready .v61-source-play{opacity:1}.v61-source-copy{display:grid;gap:2px;min-width:0;direction:rtl;text-align:right}.v61-source-copy small{font-size:9px;letter-spacing:.12em;color:#fb4b83;font-weight:900}.v61-source-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v61-source-copy span{font-size:10px;color:#8c95a2}.v61-source-copy em{font-style:normal;color:#cbd1da}.v61-source-modes{display:flex;gap:4px;direction:ltr}.v61-source-modes button{height:30px;border:1px solid #313640;border-radius:999px;background:#202229;color:#9ea6b2;padding:0 9px;font-size:9px}.v61-source-modes button.active{background:#f2f2f3;color:#111;border-color:#f2f2f3}.v61-source-remove{width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#9da4af;font-size:20px}.v61-source-remove:hover{background:#2a2d34;color:#fff}.v61-source-attachment.is-uploading:after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:2px;background:linear-gradient(90deg,transparent,#ff4b75,#7b61ff,transparent);background-size:220% 100%;animation:v61upload 1s linear infinite}@keyframes v61upload{to{background-position:220% 0}}
/* Results: artwork at the left, Arabic copy to its right, play on artwork just like the reference UI. */
.v14-track{direction:ltr!important}.track-main{direction:ltr!important}.track-copy{direction:rtl!important;text-align:right!important}.track-cover{position:relative!important;background:#171a21!important;isolation:isolate}.track-cover>img{width:100%;height:100%;object-fit:cover;display:block}.cover-play{position:absolute;inset:0;margin:auto;width:36px;height:36px;border:0;border-radius:50%;background:rgba(10,10,12,.78);color:#fff;display:grid;place-items:center;opacity:0;transform:scale(.9);transition:.15s;z-index:3}.track-cover:hover .cover-play,.v14-track:hover .cover-play{opacity:1;transform:scale(1)}.track-quick-actions{direction:ltr}.more-btn{direction:ltr}.track-menu{direction:rtl}.variant-letter.has-cover{padding:0!important;overflow:hidden;position:relative}.variant-letter.has-cover img{width:100%;height:100%;object-fit:cover}.variant-letter.has-cover span{position:absolute;inset:0;margin:auto;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.72);display:grid;place-items:center;color:#fff}
/* Keep advanced production controls available without letting them dominate the page. */
.control-strip{opacity:.92}.audio-workflow{margin-top:0}.audio-workflow:not(:has(.source-linked-card)){border-color:#272c35!important}.composer-card textarea,.audio-workflow textarea,.field input,.field select,.field textarea{background:#0e1116!important;color:#f2f4f7!important;border-color:#2a3039!important}.upload-zone{background:#0e1116!important}.generate-dock{background:linear-gradient(180deg,rgba(10,13,18,.15),#0a0d12 25%)!important}.generate-btn{box-shadow:none!important}
/* Remove accidental white surfaces from legacy controls. */
body[data-page="create"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),body[data-page="create"] textarea,body[data-page="create"] select,body[data-page="create"] option{background-color:#0e1116!important;color:#f4f5f7!important}body[data-page="create"] select{color-scheme:dark}.v14-modal .modal-card{background:#15181e!important}
/* Track page artwork and safe error presentation */
.track-page>.track-cover{position:relative;overflow:hidden}.track-page>.track-cover img{width:100%;height:100%;object-fit:cover}.track-page>.track-cover .cover-play{width:56px;height:56px;font-size:20px}.track-error-friendly{margin-top:14px}.track-error-debug{direction:ltr;text-align:left;white-space:pre-wrap;max-height:220px;overflow:auto;font-size:10px;color:#9aa3af}
@media(max-width:900px){.v61-source-bar{position:sticky;top:0;z-index:32}.v61-source-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(64px + var(--player-h) + 12px);width:auto}.v61-source-attachment{grid-template-columns:58px minmax(0,1fr) 30px}.v61-source-art{width:58px;height:58px}.v61-source-modes{grid-column:2/4;justify-content:flex-start}.cover-play{opacity:1;background:rgba(0,0,0,.58)}.global-player{background:#17191e!important}}
@media(max-width:560px){.v61-source-main{height:48px;font-size:12px}.v61-source-attachment{padding:6px}.v61-source-copy span{display:none}.v61-source-modes button{padding:0 7px}.control-strip{grid-template-columns:1fr 1fr!important}.control-strip .field:nth-child(n+3){display:none!important}}


/* V62 create-submit reliability + dark UI hardening */
.generate-dock{position:relative!important;bottom:auto!important;z-index:8!important;background:rgba(9,13,20,.72)!important;border-color:#273142!important;box-shadow:none!important;backdrop-filter:none!important}
.generate-btn,#generateMusicBtn{position:relative!important;z-index:2!important;pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important;min-height:52px!important}
.generate-btn[aria-busy="true"]{opacity:.82!important;cursor:wait!important}
#formMessage{position:relative;z-index:121;margin:8px 0 84px}
.v14-create input,.v14-create textarea,.v14-create select,.v14-create option{color-scheme:dark;background-color:#0d1420;color:#f5f7fb;border-color:#273142}
.v14-create input[type="checkbox"],.v14-create input[type="range"]{background:initial}
@media(max-width:900px){.generate-dock{position:relative!important;bottom:auto!important}.generate-btn,#generateMusicBtn{min-height:56px!important;font-size:16px!important}#formMessage{margin-bottom:12px}}

/* V68 linked-source autoflow */
.v68-left-source{margin:10px 0 14px;padding:12px;border:1px solid rgba(74,222,128,.24);background:linear-gradient(135deg,rgba(16,185,129,.10),rgba(59,130,246,.08));border-radius:16px}
.v68-left-source-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}.v68-left-source-head b{font-size:13px}.v68-left-source-head em{margin-inline-start:auto;font-style:normal;font-size:10px;padding:4px 7px;border-radius:999px;background:#111c31;color:#86efac;border:1px solid #29435b}.v68-source-dot{width:8px;height:8px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.12)}
.v68-left-source-body{display:flex;align-items:center;gap:10px}.v68-left-play{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:12px;background:#17243a;color:#fff;font-size:18px;cursor:pointer}.v68-left-source-body>div{min-width:0;display:grid;gap:3px}.v68-left-source-body strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v68-left-source-body small{color:#8ea0ba;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v68-left-source-body span{font-size:11px;color:#86efac}
.v14-create.has-linked-source .v14-library{border-color:rgba(74,222,128,.18)}
@media(max-width:900px){.v68-left-source{margin:8px 0 12px}}

/* V69 — Create dock must stay in the normal document flow, never cover composer controls. */
body[data-page="create"] .generate-dock{
  position:relative!important;
  inset:auto!important;
  bottom:auto!important;
  z-index:8!important;
  margin-top:28px!important;
  margin-bottom:calc(var(--player-h,72px) + 28px)!important;
  padding-bottom:10px!important;
  background:linear-gradient(180deg,rgba(10,13,18,.15),#0a0d12 25%)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body[data-page="create"] #formMessage{margin:8px 0 14px!important;position:relative!important;z-index:9!important}
@media(max-width:900px){
  body[data-page="create"] .generate-dock{position:relative!important;bottom:auto!important;margin-top:24px!important;margin-bottom:calc(var(--player-h,72px) + 92px)!important}
  body[data-page="create"] #formMessage{margin-bottom:12px!important}
}


/* V70 — mobile create bar is part of the page, never a floating overlay. */
html body[data-page="create"] #createForm > .generate-dock{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  transform:none!important;translate:none!important;float:none!important;clear:both!important;
  width:auto!important;max-width:none!important;margin:46px 0 22px!important;padding:14px 0 8px!important;
  z-index:1!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;
}
html body[data-page="create"] #generateMusicBtn{position:relative!important;inset:auto!important;width:100%!important;pointer-events:auto!important;touch-action:manipulation!important}
html body[data-page="create"] #formMessage{position:static!important;margin:10px 0 24px!important;transform:none!important}
@media(max-width:900px){
  html body[data-page="create"] #createForm > .generate-dock{margin-top:54px!important;margin-bottom:26px!important;padding-bottom:6px!important}
  html body[data-page="create"] #formMessage{margin-bottom:28px!important}
}

/* V71 — Create action is a stable part of the form, never an overlay. */
html body[data-page="create"] #createForm{padding-bottom:24px!important}
html body[data-page="create"] #createForm>.generate-dock{
  position:relative!important;inset:auto!important;transform:none!important;
  margin:34px 0 12px!important;padding:14px!important;
  border:1px solid #263247!important;border-radius:18px!important;
  background:#0c121d!important;box-shadow:0 10px 28px rgba(0,0,0,.18)!important;
  z-index:2!important;overflow:visible!important;
}
html body[data-page="create"] #createForm>.generate-dock .engine-readiness{margin-bottom:10px!important}
html body[data-page="create"] #generateMusicBtn{display:block!important;position:relative!important;inset:auto!important;width:100%!important;min-height:52px!important;margin:0!important;pointer-events:auto!important;touch-action:manipulation!important}
html body[data-page="create"] #formMessage{position:relative!important;inset:auto!important;margin:8px 0 18px!important;min-height:0!important;z-index:2!important}
@media(max-width:900px){
  html body[data-page="create"] #createForm{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
  html body[data-page="create"] #createForm>.generate-dock{margin:30px 0 14px!important;padding:12px!important;border-radius:16px!important}
  html body[data-page="create"] #generateMusicBtn{min-height:58px!important;font-size:17px!important}
}

/* V74 — Persistent Create Action Bar
   The composer scrolls; the create action stays pinned to the bottom of the composer. */
html body[data-page="create"] .v14-create>.v14-creator{
  padding-bottom:calc(var(--player-h,70px) + 132px)!important;
  scroll-padding-bottom:150px!important;
}
html body[data-page="create"] #createForm{
  padding-bottom:0!important;
}
html body[data-page="create"] #createForm>.generate-dock{
  position:sticky!important;
  position:-webkit-sticky!important;
  left:auto!important;right:auto!important;top:auto!important;
  bottom:0!important;
  transform:none!important;
  z-index:80!important;
  margin:18px -16px -1px!important;
  padding:12px 16px 14px!important;
  border:0!important;
  border-top:1px solid rgba(67,82,110,.72)!important;
  border-radius:0!important;
  background:linear-gradient(180deg,rgba(12,17,25,.68) 0%,rgba(12,17,25,.96) 24%,#0c1119 100%)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  backdrop-filter:blur(14px)!important;
  box-shadow:0 -14px 30px rgba(0,0,0,.30)!important;
  overflow:visible!important;
}
html body[data-page="create"] #generateMusicBtn{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  min-height:56px!important;
  margin:0!important;
  border-radius:14px!important;
  z-index:2!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
  box-shadow:0 12px 34px rgba(154,55,133,.24)!important;
}
html body[data-page="create"] #formMessage{
  position:relative!important;
  z-index:81!important;
  margin:10px 0 18px!important;
}
@media(max-width:900px){
  html body[data-page="create"] .v14-create>.v14-creator{
    padding-bottom:calc(64px + env(safe-area-inset-bottom) + 126px)!important;
    scroll-padding-bottom:170px!important;
  }
  html body[data-page="create"] #createForm>.generate-dock{
    bottom:0!important;
    margin:18px -11px -1px!important;
    padding:10px 11px 12px!important;
    z-index:120!important;
  }
  html body[data-page="create"] #generateMusicBtn{
    min-height:58px!important;
    font-size:17px!important;
  }
}


/* V75 — Suno-style composer frame.
   The composer has its own scroll body. Create is a real footer of the composer,
   always visible from the first paint; results remain an independent pane. */
html body[data-page="create"] .v14-create>.v14-creator{
  height:100%!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  padding:16px 16px 0!important;
  scroll-padding-bottom:0!important;
}
html body[data-page="create"] .v14-create>.v14-library{height:100%!important}
html body[data-page="create"] .creator-hero,
html body[data-page="create"] .mode-tabs{flex:0 0 auto!important}
html body[data-page="create"] #createForm{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  padding:0!important;
}
html body[data-page="create"] .v75-create-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  display:grid!important;
  align-content:start!important;
  gap:11px!important;
  padding:0 4px 22px 0!important;
}
html body[data-page="create"] .v75-create-scroll::-webkit-scrollbar{width:7px}
html body[data-page="create"] .v75-create-scroll::-webkit-scrollbar-track{background:transparent}
html body[data-page="create"] .v75-create-scroll::-webkit-scrollbar-thumb{background:#343b47;border-radius:99px}
html body[data-page="create"] .v75-create-footer{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:120!important;
  margin:0 -16px!important;
  padding:8px 16px 12px!important;
  border-top:1px solid #252a33!important;
  background:#0c1119!important;
  box-shadow:0 -10px 24px rgba(0,0,0,.24)!important;
}
html body[data-page="create"] .v75-create-footer #formMessage{
  position:static!important;
  margin:0!important;
  min-height:0!important;
}
html body[data-page="create"] .v75-create-footer #formMessage:not(:empty){margin:0 0 8px!important}
html body[data-page="create"] .v75-create-footer>.generate-dock{
  position:relative!important;
  inset:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  overflow:visible!important;
  z-index:1!important;
}
html body[data-page="create"] .v75-create-footer #generateMusicBtn{
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
  border-radius:13px!important;
  position:relative!important;
  inset:auto!important;
}
@media(min-width:901px){
  html body.has-global-player[data-page="create"] .v14-create{height:calc(100dvh - var(--player-h,70px))!important}
}
@media(max-width:900px){
  html body[data-page="create"] .v14-create>.v14-creator{
    height:100%!important;
    padding:11px 11px 0!important;
  }
  html body[data-page="create"] #createForm{padding:0!important}
  html body[data-page="create"] .v75-create-scroll{padding:0 2px 18px 0!important}
  html body[data-page="create"] .v75-create-footer{
    margin:0 -11px!important;
    padding:8px 11px calc(10px + env(safe-area-inset-bottom))!important;
    z-index:150!important;
  }
  html body[data-page="create"] .v75-create-footer>.generate-dock{margin:0!important;padding:0!important;bottom:auto!important}
  html body[data-page="create"] .v75-create-footer #generateMusicBtn{min-height:56px!important;font-size:16px!important}
  html body.has-global-player[data-page="create"] .v14-create{
    height:calc(100dvh - 58px - 64px - var(--player-h,64px) - env(safe-area-inset-bottom))!important;
  }
}

/* V80 — Suno-like Add Audio / Voice / Inspo are three distinct workflows. */
body[data-page="create"] .v61-source-main{position:relative}
body[data-page="create"] #v61AudioBtn:after,body[data-page="create"] #v61VoiceBtn:after,body[data-page="create"] #v61InspoBtn:after{position:absolute;bottom:5px;font-size:8px;font-weight:600;color:#7f8997;letter-spacing:.03em}
body[data-page="create"] #v61AudioBtn:after{content:"upload / record"}
body[data-page="create"] #v61VoiceBtn:after{content:"voice DNA"}
body[data-page="create"] #v61InspoBtn:after{content:"playlist style"}
.v80-selected-addons{display:flex;flex-wrap:wrap;gap:7px;margin:-2px 0 10px}.v80-selected-addons:empty{display:none}.v80-addon-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;min-height:30px;padding:4px 8px;border:1px solid #333a46;border-radius:999px;background:#161a21;color:#eef2f7}.v80-addon-chip[hidden]{display:none!important}.v80-addon-chip span{font-size:8px;letter-spacing:.12em;color:#7dd3fc;font-weight:900}.v80-addon-chip b{font-size:10px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v80-addon-chip em{font-style:normal;color:#8993a2;font-size:15px;line-height:1}.v80-addon-chip:hover{background:#20252e}
.v80-input-modal .v80-input-card{width:min(620px,calc(100vw - 28px));max-height:min(760px,calc(100dvh - 40px));overflow:auto;padding:20px}.v80-input-card>p{margin:4px 0 14px;color:#9aa4b3;font-size:12px;line-height:1.7}.v80-choice-list{display:grid;gap:8px}.v80-choice-list[hidden]{display:none!important}.v80-choice-list>button{width:100%;min-height:58px;border:1px solid #2d3440;border-radius:13px;background:#0e131b;color:#f5f7fb;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;text-align:right;padding:9px 11px}.v80-choice-list>button:hover{border-color:#566174;background:#151b25}.v80-choice-list>button>span{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#1b2230;font-size:18px}.v80-choice-list>button>div{min-width:0;display:grid;gap:3px}.v80-choice-list>button b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v80-choice-list>button small{font-size:10px;color:#8f9aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v80-empty{padding:16px;border:1px dashed #343b48;border-radius:12px;color:#8e99a9;font-size:11px;line-height:1.7}.v80-modal-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.v80-modal-actions .soft-btn{flex:1 1 150px}.v80-tabs{display:flex;gap:6px;margin:0 0 10px}.v80-tabs button{border:1px solid #2f3743;background:#10151d;color:#9da7b6;border-radius:999px;padding:7px 12px;font-size:10px}.v80-tabs button.active{background:#f1f3f5;color:#0e1116;border-color:#f1f3f5}.v80-lyrics-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.v80-lyrics-compare>div{min-width:0;border:1px solid #2e3541;border-radius:14px;background:#0d1219;padding:10px}.v80-lyrics-compare small{display:block;margin-bottom:7px;color:#9aa5b5}.v80-lyrics-compare pre{min-height:180px;max-height:280px;overflow:auto;margin:0 0 10px;padding:10px;border-radius:10px;background:#080b10;color:#e6eaf0;white-space:pre-wrap;word-break:break-word;font:11px/1.7 system-ui,sans-serif;direction:rtl;text-align:right}.v80-lyrics-compare button{width:100%}
@media(max-width:680px){.v80-lyrics-compare{grid-template-columns:1fr}.v80-lyrics-compare pre{min-height:115px;max-height:190px}.v80-input-modal .v80-input-card{padding:15px}.v61-source-main:after{display:none}}

/* V81 — Suno-like live recorder UX */
.naghma-recorder-overlay{position:fixed;inset:0;z-index:100050;background:rgba(3,7,15,.82);backdrop-filter:blur(14px);display:grid;place-items:center;padding:18px}
.naghma-recorder-overlay[hidden]{display:none!important}
.naghma-recorder-card{width:min(640px,calc(100vw - 28px));border:1px solid #30394a;border-radius:24px;background:linear-gradient(165deg,#121924,#0b1119 62%,#10111d);box-shadow:0 28px 90px #000b,0 0 0 1px #ffffff08 inset;padding:22px;color:#f8fafc;direction:rtl}
.naghma-recorder-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.naghma-recorder-top h3{margin:7px 0 3px;font-size:24px}.naghma-recorder-top p{margin:0;color:#9ba7b7;font-size:12px;line-height:1.65}.naghma-rec-x{width:38px;height:38px;border:1px solid #313a49;border-radius:12px;background:#171e29;color:#dce3ec;font-size:23px;cursor:pointer}
.naghma-rec-live{display:inline-flex;align-items:center;gap:8px;color:#ff6b7a;font:800 10px/1 system-ui;letter-spacing:.14em}.naghma-rec-live i{width:9px;height:9px;border-radius:50%;background:#ff3b55;box-shadow:0 0 0 0 rgba(255,59,85,.55);animation:naghmaRecPulse 1.25s infinite}.naghma-recorder-overlay[data-phase="permission"] .naghma-rec-live i,.naghma-recorder-overlay[data-phase="processing"] .naghma-rec-live i{background:#8b5cf6;animation:naghmaRecSpin 1s linear infinite;border:2px solid #ffffff55;border-top-color:#fff;box-shadow:none}
@keyframes naghmaRecPulse{0%{box-shadow:0 0 0 0 rgba(255,59,85,.52)}70%{box-shadow:0 0 0 12px rgba(255,59,85,0)}100%{box-shadow:0 0 0 0 rgba(255,59,85,0)}}@keyframes naghmaRecSpin{to{transform:rotate(360deg)}}
.naghma-rec-time{font:900 52px/1 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center;letter-spacing:-.055em;margin:22px 0 13px;color:#fff}.naghma-rec-wave{height:154px;border:1px solid #283243;border-radius:18px;background:radial-gradient(circle at 50% 50%,#17213a 0,#0b111b 62%);overflow:hidden;position:relative;box-shadow:inset 0 0 45px #0005}.naghma-rec-wave canvas{width:100%;height:100%;display:block}.naghma-rec-center{position:absolute;left:50%;top:0;bottom:0;width:1px;background:#ffffff15;pointer-events:none}
.naghma-rec-meter{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:13px 3px 0;font-size:9px;color:#8d99aa;direction:ltr}.naghma-rec-meter>div{height:5px;border-radius:999px;background:#202938;overflow:hidden}.naghma-rec-meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#38bdf8,#8b5cf6,#fb7185);transition:width .08s linear}.naghma-rec-meter b{min-width:30px;color:#b8c3d2;font:700 9px ui-monospace,monospace}
.naghma-rec-actions{display:grid;grid-template-columns:1fr 1.65fr;gap:10px;margin-top:20px}.naghma-rec-actions button{min-height:50px;border-radius:14px;font-weight:800;cursor:pointer}.naghma-rec-stop{border:1px solid #ff5c6f;background:linear-gradient(135deg,#ff445f,#e11d48);color:#fff;box-shadow:0 12px 30px #e11d4838}.naghma-rec-stop span{font-size:11px;margin-left:6px}.naghma-rec-stop:disabled{opacity:.55;cursor:wait}.naghma-rec-hint{text-align:center;color:#8793a4;font-size:10px;line-height:1.65;margin-top:12px;min-height:17px}.naghma-recording-open{overflow:hidden!important}
@media(max-width:640px){.naghma-recorder-card{padding:17px;border-radius:20px}.naghma-rec-time{font-size:44px;margin-top:18px}.naghma-rec-wave{height:130px}.naghma-rec-actions{grid-template-columns:1fr}.naghma-rec-actions .soft-btn{order:2}.naghma-rec-stop{order:1}.naghma-recorder-top h3{font-size:20px}}


/* V82 — Arabic Music Intelligence + persistent recorded takes */
.v82-arabic-ai{grid-column:1/-1;display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #3c3564;border-radius:18px;background:linear-gradient(145deg,rgba(34,24,61,.88),rgba(9,23,34,.92));box-shadow:0 12px 36px #0003 inset;margin-bottom:4px}.v82-ai-copy{display:flex;flex-direction:column;gap:4px}.v82-ai-copy>b{font-size:16px;color:#f7f4ff}.v82-ai-copy small{color:#9ca8bc;line-height:1.6}.v82-ai-modes{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.v82-ai-modes button{min-height:38px;padding:0 12px;border:1px solid #3c465c;border-radius:11px;background:#101725;color:#cbd5e1;font-weight:800;cursor:pointer}.v82-ai-modes button.active{border-color:#a78bfa;background:linear-gradient(135deg,#5b21b6,#0e7490);color:#fff;box-shadow:0 8px 24px #7c3aed33}.v82-ai-action{grid-column:1/-1;display:flex;align-items:center;gap:12px;border-top:1px solid #ffffff0d;padding-top:12px}.v82-ai-action span{font-size:11px;color:#9da9ba}.v82-recording-track{box-shadow:inset 3px 0 0 #fb7185}.v82-recording-track .track-state{color:#86efac!important}.v61-source-attachment[data-saved-generation]:after{content:'SAVED IN MY MUSIC';position:absolute;top:8px;left:10px;padding:4px 7px;border-radius:999px;background:#052e2bcc;color:#5eead4;border:1px solid #14b8a655;font-size:8px;font-weight:900;letter-spacing:.08em}
@media(max-width:760px){.v82-arabic-ai{grid-template-columns:1fr}.v82-ai-modes{justify-content:flex-start}.v82-ai-action{align-items:flex-start;flex-direction:column}.v82-ai-action .soft-btn{width:100%}}
