/* Conouri Studio app: composer on the left, creations on the right. */
.wrap.wide, .nav .wrap.wide { width: min(1360px, 100% - 32px); }
.appbody { min-height: 100vh; }

.credits { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); font-size: 13.5px; color: var(--mute); }
.credits b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.credits .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.credits.low .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.credits:hover { border-color: var(--acc); }

/* gate */
.gate { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(60% 60% at 50% 0%, rgba(157, 149, 255, .2), transparent 70%); }
.gate-card { max-width: 640px; text-align: center; }
.gate-card h1 { font-size: clamp(34px, 5vw, 56px); }
.gate-card .lede { margin-inline: auto; }
.gate .cta-row { justify-content: center; }

/* layout */
.app { display: grid; grid-template-columns: 420px 1fr; gap: 28px; padding: 28px 0 80px; align-items: start; }
.composer { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 4px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.lab { margin: 14px 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.lab small { text-transform: none; letter-spacing: 0; color: var(--dim); font-family: var(--body); font-size: 12px; }
.composer .lab:first-child { margin-top: 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line2); margin-bottom: 6px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--mute); }
.seg button[aria-selected="true"] { background: var(--ink); color: #120f26; }

textarea { width: 100%; resize: vertical; min-height: 104px; max-height: 260px; padding: 14px 15px; border-radius: 16px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 500 15.5px/1.5 var(--body); }
textarea:focus, .ref-url:focus { outline: 2px solid rgba(185, 180, 255, .55); outline-offset: 1px; }
textarea::placeholder { color: var(--dim); }
.ideas { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.idea { border: 1px solid var(--line2); background: transparent; color: var(--mute); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; max-width: 100%; text-align: left; }
.idea:hover { color: var(--ink); border-color: var(--acc); }

.mpick { display: grid; gap: 8px; }
.mcard { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line2); background: var(--bg); border-radius: 16px; padding: 12px 14px; width: 100%; }
.mcard[aria-checked="true"] { border-color: var(--acc); background: rgba(185, 180, 255, .1); }
.mcard .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(185, 180, 255, .25), rgba(103, 232, 201, .18)); font-size: 17px; flex: none; }
.mcard .tx { flex: 1; min-width: 0; }
.mcard b { display: block; font-size: 14.5px; }
.mcard small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.mcard .pc { font: 500 11.5px/1.2 var(--mono); color: var(--good); text-align: right; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chp { border: 1px solid var(--line2); background: var(--bg); color: var(--mute); border-radius: 12px; padding: 9px 13px; font-weight: 650; font-size: 13.5px; min-width: 56px; text-align: center; }
.chp[aria-checked="true"] { background: var(--ink); color: #120f26; border-color: var(--ink); }
.chp small { display: block; font: 500 10.5px/1.1 var(--mono); opacity: .7; margin-top: 2px; }

.refs { display: flex; flex-wrap: wrap; gap: 10px; }
.ref { position: relative; width: 74px; height: 74px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg); }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(8, 7, 13, .8); color: #fff; font-size: 12px; line-height: 1; }
.ref.busy::after { content: ""; position: absolute; inset: 0; background: rgba(8, 7, 13, .6) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23b9b4ff' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E"); }
.ref-add { width: 74px; height: 74px; border-radius: 14px; border: 1.5px dashed var(--line2); background: transparent; color: var(--mute); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.ref-add:hover { color: var(--ink); border-color: var(--acc); }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.hint.warn { color: var(--warn); }

.btn.big { width: 100%; padding: 16px; font-size: 16.5px; margin-top: 18px; }
.cost { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--mute); min-height: 20px; }
.cost b { color: var(--ink); }
.cost .warn { color: var(--warn); }

/* feed */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.feed-head h2 { font-size: 26px; margin: 0; }
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.jm { position: relative; background: #000; aspect-ratio: 9 / 16; }
.jm.a169 { aspect-ratio: 16 / 9; }
.jm.a11 { aspect-ratio: 1; }
.jm video, .jm img { width: 100%; height: 100%; object-fit: cover; }
.jm.wait { background: linear-gradient(110deg, #14121d 30%, #201c33 50%, #14121d 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--mute); font-size: 13.5px; }
.jm.wait b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.jm.fail { background: #1a1318; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--bad); font-size: 13.5px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.jb { padding: 12px 14px 14px; display: grid; gap: 8px; }
.jt { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.jp { margin: 0; font-size: 13.5px; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jact { display: flex; flex-wrap: wrap; gap: 6px; }
.jact a, .jact button { border: 1px solid var(--line2); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 650; text-decoration: none; }
.jact a:hover, .jact button:hover { border-color: var(--acc); }
.empty { text-align: center; padding: 70px 20px; border: 1.5px dashed var(--line2); border-radius: 24px; color: var(--mute); }
.empty h3 { font-family: var(--head); font-size: 24px; color: var(--ink); margin: 18px 0 6px; }
.empty p { margin: 0; }
.empty-art { display: flex; justify-content: center; gap: 8px; }
.empty-art i { width: 46px; height: 64px; border-radius: 12px; background: linear-gradient(160deg, rgba(185, 180, 255, .35), rgba(103, 232, 201, .2)); }
.empty-art i:nth-child(2) { transform: translateY(-8px) rotate(3deg); }
.empty-art i:nth-child(3) { transform: rotate(-4deg); }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(5, 4, 9, .8); display: grid; place-items: center; padding: 18px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(980px, 100%); background: var(--card); border: 1px solid var(--line2); border-radius: 26px; padding: 30px; max-height: 94vh; overflow-y: auto; }
.modal-card h2 { font-size: 32px; margin: 0 40px 6px 0; }
.modal-card .sub { margin: 0 0 18px; color: var(--mute); }
.mplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mplans .plan { padding: 20px; }
.mplans .plan .price { font-size: 38px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line2); border-radius: 16px; padding: 14px 16px; background: var(--bg); }
.pack b { display: block; }
.pack small { color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 200; background: var(--ink); color: #120f26; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); transition: all .25s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .composer { position: static; max-height: none; }
  .mplans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-one { display: none; }
  .modal-card { padding: 22px 18px; }
  .jgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}


/* camera and lens, picture picker, 3 angles */
.btn.big.alt { margin-top: 10px; background: rgba(61, 255, 143, .08); border-color: rgba(61, 255, 143, .45); color: #b9ffd8; }
.btn.big.alt:hover { background: rgba(61, 255, 143, .16); }
.chp.cam { min-width: 0; padding: 8px 11px; font-size: 12.5px; }
.chp.cam[aria-pressed="true"] { background: var(--ink); color: #120f26; border-color: var(--ink); }
.modal-card.narrow { width: min(560px, 100%); }
.seg.three { grid-template-columns: repeat(3, 1fr); margin: 14px 0; }
.seg.three button { font-size: 12.5px; padding: 9px 6px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.ptile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg); padding: 0; cursor: pointer; }
.ptile img { width: 100%; height: 100%; object-fit: cover; }
.ptile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font: 600 11px/1.2 var(--mono); text-align: left; background: linear-gradient(to top, rgba(8, 7, 13, .9), transparent); }
.ptile:hover { border-color: var(--acc); }
.pempty { color: var(--mute); text-align: center; padding: 26px 10px; font-size: 14px; }
.pphone { display: grid; gap: 12px; text-align: center; padding: 8px 0 4px; }
.pphone p { margin: 0; color: var(--mute); font-size: 14px; }
@media (max-width: 560px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }

/* the real file inputs sit invisibly in the page; the buttons are labels that open them directly, which phones allow */
.file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
label.btn { cursor: pointer; }
.pphone .btn { width: 100%; }

.filebtn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 100px; }

/* gallery: works on desktop (drag, paste, click) and phone (tap to open the photo library) */
.rightcol { display: grid; gap: 28px; min-width: 0; }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.drop { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1.5px dashed var(--line2); border-radius: 16px; padding: 14px; margin-bottom: 14px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--acc); background: rgba(160, 140, 255, .08); }
.drop .btn { width: auto; padding-left: 22px; padding-right: 22px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gtile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--bg); padding: 0; cursor: pointer; }
.gtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtile:hover { border-color: var(--acc); }
.gtile .gx { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(8, 7, 13, .8); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.gtile .guse { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 5px; font: 600 11px/1 var(--mono); text-align: center; background: linear-gradient(to top, rgba(8, 7, 13, .9), transparent); opacity: 0; transition: opacity .15s; }
.gtile:hover .guse, .gtile:focus-within .guse { opacity: 1; }
@media (hover: none) { .gtile .guse { opacity: 1; } }
.gtile.busy img { opacity: .4; }
.gempty { grid-column: 1 / -1; color: var(--mute); font-size: 14px; padding: 6px 2px; }
.seg.four { grid-template-columns: repeat(4, 1fr); margin: 14px 0; }
.seg.four button { padding-left: 4px; padding-right: 4px; }
@media (min-width: 1001px) { .jgrid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }

.back-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 14px; margin-right: 6px; border-radius: 999px; border: 1px solid var(--line2); white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
.back-link:hover { border-color: var(--acc); }

/* viewer: see an image or play a clip full size, with its actions */
.viewer { padding: 12px; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.viewer[hidden] { display: none; }
.vw-card { position: relative; background: var(--card); border: 1px solid var(--line2); border-radius: 22px; padding: 14px; max-width: min(1100px, 100%); margin: 0 auto; display: grid; gap: 10px; max-height: 96vh; overflow-y: auto; min-width: 0; }
.vw-media { display: grid; place-items: center; min-height: 120px; }
.vw-media img, .vw-media video { max-width: 100%; max-height: 68vh; border-radius: 14px; display: block; background: #000; }
.vw-prompt { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.5; }
.vw-act { display: flex; flex-wrap: wrap; gap: 8px; }
.vw-act a, .vw-act button { border: 1px solid var(--line2); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 42px; }
.vw-act .primary { background: var(--acc); color: #120f26; border-color: transparent; }
.vw-act button:disabled { opacity: .6; cursor: default; }
.vw-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.vw-nav[hidden] { display: none; }
.viewer .lb-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; }
.jm { cursor: zoom-in; position: relative; }
.jm .expand { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 999px; background: rgba(8, 7, 13, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 11px; min-height: 34px; cursor: pointer; }
.gtile .gview { position: absolute; top: 5px; left: 5px; border: 0; border-radius: 999px; background: rgba(8, 7, 13, .8); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 9px; min-height: 26px; cursor: pointer; }
.gtile .vbadge { position: absolute; right: 6px; bottom: 28px; font-size: 14px; color: #fff; text-shadow: 0 1px 6px #000; }
.gtile video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .viewer { grid-template-columns: 1fr; } .vw-nav { display: none; } .vw-media img, .vw-media video { max-height: 56vh; } }

/* skills */
.chip-add { border-style: dashed !important; color: var(--acc) !important; }
.skillcard { width: min(640px, 100%); }
.skillcard input[type=text], .skillcard textarea { width: 100%; box-sizing: border-box; background: var(--bg); color: inherit; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; font: inherit; }
.skrow { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; margin-top: 8px; }
.skrow .tx { flex: 1; min-width: 0; }
.skrow b { display: block; font-size: 14.5px; }
.skrow small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.skrow .acts { display: flex; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.skrow .acts button { font-size: 12.5px; padding: 6px 10px; }

/* guide mode: plain-English tips under each control, hidden for people who know their way around */
.guide { display: none; margin: 4px 0 10px; padding: 9px 12px; border-left: 3px solid var(--acc); background: rgba(185, 180, 255, .08); border-radius: 0 10px 10px 0; color: var(--mute); font-size: 13px; line-height: 1.5; }
body.guided .guide { display: block; }
body.guided .guide.live:empty { display: none; }
.guide.welcome { border-left-color: var(--good); background: rgba(103, 232, 201, .08); }
.guide-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: transparent; color: inherit; border-radius: 999px; padding: 7px 12px; font: 600 12.5px/1 inherit; cursor: pointer; }
.guide-toggle .gt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.guide-toggle[aria-pressed="true"] { border-color: var(--acc); }
.guide-toggle[aria-pressed="true"] .gt-dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
@media (max-width: 560px) { .guide-toggle #guideTxt { display: none; } }

/* Edit video: the uploaded clip and the "what to change" fields */
.vid { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line2); max-width: 100%; }
.vid.busy { border-style: dashed; }
.vid b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.vid small { color: var(--mute); }
.vid button { border: 0; background: transparent; color: var(--mute); font-size: 15px; cursor: pointer; padding: 4px 8px; }
.vid-add { height: 74px; padding: 0 22px; width: auto; white-space: nowrap; }
.vbar { height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; margin-top: 6px; width: 160px; }
.vbar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.editrow { display: grid; gap: 8px; margin-bottom: 10px; }
.editrow input { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: inherit; }

/* Edit video: tool cards and the plain-language info panel */
.toolrow { margin: 6px 0 14px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.tool { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line2); background: transparent; color: var(--ink); cursor: pointer; font: inherit; display: grid; gap: 3px; }
.tool b { font-size: 14px; }
.tool small { color: var(--mute); font-size: 12px; line-height: 1.35; }
.tool .tp { font-size: 12px; color: var(--acc); font-weight: 600; }
.tool[aria-checked="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.toolinfo { margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); font-size: 13.5px; line-height: 1.5; display: grid; gap: 6px; }
.toolinfo p { margin: 0; }
.toolinfo b { font-weight: 650; }
.toolinfo .use { padding-top: 6px; border-top: 1px solid var(--line2); }
.toolinfo .use.low { color: #d9534f; }
.toolinfo .watch { color: var(--mute); }
