/* The Art tool (js/art.js): the member's arts under New, the pictures to start with, and one art's Art Pieces. The
   bar, the pop-up, the pictures' choices, the From Ignis sheet, the hold menu and the note at the bottom are the Image
   tool's own (css/image.css). Motion: short fades and small rises only (design/classic-motion). */

.art { min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.art[hidden] { display: none; }
.art .acc { fill: var(--accent); }
.art-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0.6rem 16px calc(1.5rem + var(--inset-bottom)); }
.art-list, .art-pick, .art-one { animation: im-in 0.25s ease both; }

/* the DEV tag on Home's Art while only the developer has it (js/app.js drawToolButtons) */
.dock .tool { position: relative; }
.dock .tool > .st-dev { position: absolute; top: -2px; inset-inline-end: 2px; margin: 0; color: var(--sky-acc); border-color: currentColor; }

/* ---------- a new art's name ---------- */

.art-name .ip-card { width: min(380px, 100%); }
.art-name-row { display: flex; gap: 8px; }
.art-name-row input {
  flex: 1; width: 0; min-width: 0; padding: 0.75rem 0.9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 500 1.05rem/1.2 var(--sans);
}
.art-name-row input:focus { outline: none; border-color: var(--accent); }
.art-name-row .btn { flex: none; }

/* ---------- the list ---------- */

.art-new { display: flex; align-items: center; justify-content: center; gap: 8px; }
.art-new svg, .art-add svg { width: 18px; height: 18px; flex: none; }
.art-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 18px; }
.art-none { grid-column: 1 / -1; padding: 12vh 0 2rem; }
.art-item {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink);
  text-align: start; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.art-covers {
  display: grid; gap: 2px; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  box-shadow: var(--shadow); transition: transform 0.12s ease;
}
.art-item:active .art-covers { transform: scale(0.98); }
.art-covers img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.art-covers[data-n='2'] { grid-template-columns: 1fr 1fr; }
.art-covers[data-n='3'] { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.art-covers[data-n='3'] img:first-child { grid-row: 1 / 3; }
.art-covers[data-n='4'] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.art-cap { display: grid; gap: 1px; padding: 0 2px; min-width: 0; }
.art-cap b { font: 600 1.12rem/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-cap small { font-size: 0.8rem; color: var(--ink-3); }

/* ---------- the pictures to start with ---------- */

.art-pick { padding-top: 4vh; }
.art-from:has(> #art-camera:not([hidden])) button { aspect-ratio: auto; min-height: 8.6rem; padding: 12px 6px; font-size: 1.05rem; text-align: center; }

/* ---------- one art: its pieces ---------- */

.art-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
/* the heading folds the pieces away: a button, with a small chevron */
.art-head-t {
  display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 6px; min-width: 0; padding: 0; border: 0;
  background: none; color: var(--ink); text-align: start; cursor: pointer;
}
.art-head-t h2 { grid-column: 1; }
.art-head-t .art-count { grid-column: 1; }
.art-fold-ic { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.25s ease; }
.art-one[data-fold='1'] .art-fold-ic { transform: rotate(-90deg); }
.art-one[data-fold='1'] .art-pieces, .art-one[data-fold='1'] .art-sizes, .art-one[data-fold='1'] .art-add { display: none; }
.art-one[data-fold='1'] .art-head-t { grid-template-columns: auto auto auto; column-gap: 10px; }
.art-one[data-fold='1'] .art-head-t .art-count { grid-column: 2; grid-row: 1; }
.art-one[data-fold='1'] .art-fold-ic { grid-column: 3; grid-row: 1; }
.art-head h2 { margin: 0; font: 600 1.45rem/1.15 var(--serif); white-space: nowrap; }
.art-count { color: var(--ink-3); font-size: 0.8rem; white-space: nowrap; }
.art-add { display: flex; align-items: center; gap: 6px; padding-inline: 0.95rem 1.1rem; }
/* the grid's size: three small icons in one pill, the picked one lit */
.art-sizes { margin-inline-start: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.art-sizes button {
  width: 32px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--ink-3); transition: background-color 0.15s ease, color 0.15s ease;
}
.art-sizes button svg { width: 16px; height: 16px; }
.art-sizes button.on { background: var(--accent-soft); color: var(--ink); }
.art-grid[data-size='small'], .art-grid[data-size='small'] .art-col { gap: 6px; }
.art-grid[data-size='small'] .art-piece { border-radius: 10px; }
.art-grid[data-size='medium'], .art-grid[data-size='medium'] .art-col { gap: 8px; }
.art-grid[data-size='medium'] .art-piece { border-radius: 13px; }
.art-piece.lifting { opacity: 0.4; }

/* ---------- the art's video: its strip, and the sound's strip under it (later) ---------- */

.art { --art-time-h: 168px; }
.art[data-tools='1'] { --art-time-h: 222px; } /* the tools bar over the strip */

/* ---------- the preview: the pieces above it (scrolling in their own box), the strip under it ---------- */

.art[data-view='one'][data-preview='1'] { height: 100dvh; min-height: 0; }
.art[data-view='one'][data-preview='1'] .art-body { display: flex; flex-direction: column; min-height: 0; }
.art[data-preview='1'] .art-one { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.art[data-preview='1'] .art-head { flex: none; margin-bottom: 10px; }
.art[data-preview='1'] .art-pieces { flex: 0 1 auto; min-height: 0; max-height: 42%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.art[data-preview='1'] .art-pieces::-webkit-scrollbar { display: none; }
.art-stage {
  flex: 1 1 0; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding-top: 10px; overflow: hidden;
}
.art-stage[hidden] { display: none; }
.art-frame-box { position: relative; flex: none; overflow: hidden; border-radius: 10px; }
.art-frame { display: block; }
.art-stage:not(.cropping) .art-frame-box { box-shadow: 0 10px 30px rgb(0 0 0 / 35%); }
.art-play { display: flex; align-items: center; gap: 10px; flex: none; }
.art-play[hidden] { display: none; }
.art-play-btn {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.art-play-btn svg { width: 20px; height: 20px; }
.art-play-btn .ic-pause, .art-stage.playing .art-play-btn .ic-play { display: none; }
.art-stage.playing .art-play-btn .ic-pause { display: block; }
.art-play-t { font: 600 0.8rem var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* the crop: a lit box over the whole picture, the rest dimmed; a corner sizes it, inside moves it */
.art-crop-box {
  position: absolute; box-shadow: 0 0 0 4000px rgb(0 0 0 / 58%); outline: 1.5px solid rgb(255 255 255 / 90%); touch-action: none; cursor: move;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 35%) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgb(255 255 255 / 35%) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgb(255 255 255 / 35%) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgb(255 255 255 / 35%) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}
.art-crop-box[hidden] { display: none; }
.art-crop-box i { position: absolute; width: 30px; height: 30px; touch-action: none; }
.art-crop-box i::after { content: ''; position: absolute; width: 16px; height: 16px; border: 3.5px solid #fff; }
.art-crop-box [data-corner='nw'] { left: -10px; top: -10px; cursor: nwse-resize; }
.art-crop-box [data-corner='ne'] { right: -10px; top: -10px; cursor: nesw-resize; }
.art-crop-box [data-corner='sw'] { left: -10px; bottom: -10px; cursor: nesw-resize; }
.art-crop-box [data-corner='se'] { right: -10px; bottom: -10px; cursor: nwse-resize; }
.art-crop-box [data-corner='nw']::after { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.art-crop-box [data-corner='ne']::after { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.art-crop-box [data-corner='sw']::after { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.art-crop-box [data-corner='se']::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.art-crop-tools { flex: none; width: 100%; display: flex; align-items: center; gap: 2px; }
/* a quarter turn: a small frame with the arrow turning over it, right beside the slider */
.art-turn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink-2); }
.art-turn svg { width: 22px; height: 22px; }
.art-turn:hover { background: var(--surface-2); color: var(--ink); }
/* Done in a tool's row: small (Faris 2026-11-22: "too fucking big") */
.art-small-done { flex: none; min-height: 0; height: 32px; padding: 0 14px; margin-inline-start: 8px; border-radius: 999px; font-size: 0.85rem; }
.art-crop-tools[hidden] { display: none; }
.art-straighten { flex: 1; min-width: 0; }


/* ---------- the tools bar over the strip: the video's (Ratio), then the picked clip's ---------- */

/* small tools, an icon with its name under it (Faris 2026-11-22: "we will have in that strip a lot of tools"); the row
   scrolls sideways once they no longer fit */
.art-tools {
  display: flex; align-items: center; gap: 2px; height: 38px; margin-bottom: 4px; padding-bottom: 2px; border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.art-tools::-webkit-scrollbar { display: none; }
.art-tools[hidden], .art-clip-tools[hidden] { display: none; }
.art-clip-tools { display: flex; align-items: center; gap: 2px; flex: none; margin-inline-start: 4px; padding-inline-start: 6px; border-inline-start: 1px solid var(--line); }
.art-tool {
  flex: none; min-width: 50px; height: 36px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 0 4px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: 600 0.58rem/1.1 var(--sans); white-space: nowrap;
}
.art-tool svg { width: 19px; height: 19px; flex: none; }
.art-tool:hover { background: var(--surface-2); color: var(--ink); }
.art-tool.on { background: var(--accent-soft); color: var(--ink); }
.art-tool:disabled { opacity: 0.35; }
.art-tool.danger { color: #e0675c; }

/* a tool's panel, under the preview in the play row's place */
.art-panel { flex: none; width: 100%; }
.art-panel[hidden] { display: none; }
.art-panel-row { display: flex; align-items: center; gap: 8px; }
.art-panel-label { font: 600 0.85rem var(--sans); color: var(--ink-2); margin-inline-end: auto; }
.art-panel-done { margin-inline-start: auto; }
.art-step {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 1.3rem/1 var(--sans);
}
.art-dur-box {
  flex: none; display: inline-flex; align-items: center; gap: 3px; height: 38px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-3); font: 600 0.82rem var(--sans);
}
.art-dur-box input { width: 3.4ch; padding: 0; border: 0; background: none; color: var(--ink); font: 600 1rem var(--sans); text-align: end; outline: none; }
.art-dur-box i { font-style: normal; }
.art-dur-box:focus-within { border-color: var(--accent); }
.art-ratios { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.art-ratio-opt {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 46px; height: 54px;
  padding: 4px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink-2); font: 600 0.66rem var(--sans);
}
.art-ratio-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.art-ratio-shape { display: block; border: 1.8px solid currentColor; border-radius: 3px; }
.art-time-main { display: flex; gap: 8px; }
.art-clip.on { box-shadow: inset 0 0 0 2.5px var(--accent); }
.art-clip.slim .art-clip-s { display: none; }
.art-clip.slim .art-clip-grip { width: 12px; }
.art-playhead { position: absolute; top: 0; height: calc(28px + var(--lane-v) + var(--lane-a)); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 4px rgb(0 0 0 / 60%); pointer-events: none; z-index: 2; }
.art-playhead::before { content: ''; position: absolute; top: 0; left: -5px; width: 12px; height: 8px; border-radius: 0 0 6px 6px; background: #fff; }
.art-playhead[hidden] { display: none; }
.art-ruler { cursor: pointer; touch-action: none; }
.art[data-view='one'] .art-body { padding-bottom: calc(var(--art-time-h) + 24px + var(--inset-bottom)); }
.art[data-view='one'] #art-toast { bottom: calc(var(--art-time-h) + 14px + var(--inset-bottom)); }
.art-time {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column;
  padding: 6px 12px calc(6px + var(--inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgb(0 0 0 / 18%); animation: im-in 0.25s ease both;
}
.art-time[hidden] { display: none; }
.art-time { --lane-v: 68px; --lane-a: 52px; } /* (set from the zoom: js/art.js sizeStrip) */
.art-time-side, .art-time-in { display: grid; grid-template-rows: 16px var(--lane-v) var(--lane-a); row-gap: 6px; }
.art-time-side { flex: none; width: 30px; align-items: center; justify-items: center; }
.art-total { font: 600 0.6rem var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.art-lane-ic { display: grid; place-items: center; color: var(--ink-2); }
.art-lane-ic svg { width: 19px; height: 19px; }
.art-time-scroll { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.art-time-scroll::-webkit-scrollbar { display: none; }
.art-time-in { position: relative; min-width: 100%; }
/* a tick a second along the bottom of the ruler (--px: a second), the time every 5 */
.art-ruler {
  position: relative; user-select: none;
  background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px var(--px)) left bottom / 100% 6px no-repeat;
}
.art-ruler span { pointer-events: none; position: absolute; top: 0; padding-inline-start: 3px; border-inline-start: 1px solid var(--ink-3); font-size: 0.56rem; line-height: 1.15; color: var(--ink-3); white-space: nowrap; }
.art-lane { position: relative; display: flex; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.art-visual:has(> .art-lane-hint), .art-audio:has(> .art-lane-hint) { border: 1.5px dashed var(--line); background: none; }
.art-lane-hint { align-self: center; padding: 0 14px; font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
/* the empty audio strip: a tap adds a sound */
.art-lane-add { align-self: stretch; display: flex; align-items: center; width: 100%; border: 0; background: none; font: 500 0.8rem var(--sans); color: var(--ink-3); text-align: start; }
/* the picture at its own shape, repeated along the clip like a filmstrip (never stretched) */
.art-clip {
  position: relative; flex: none; height: 100%; overflow: hidden; border-inline-end: 2px solid var(--surface);
  background-color: var(--surface-2); background-position: left center; background-size: auto 100%; background-repeat: repeat-x;
  touch-action: pan-x; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab;
}
.art-clip-s {
  position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff;
  font: 600 0.66rem/1.4 var(--sans); white-space: nowrap; pointer-events: none;
}
/* the right edge: drag for how long it shows */
.art-clip-grip {
  position: absolute; top: 0; right: 0; bottom: 0; width: 20px; display: grid; place-items: center; cursor: ew-resize; touch-action: none;
  background: linear-gradient(to right, transparent, rgb(0 0 0 / 38%));
}
.art-clip-grip::after { content: ''; width: 3px; height: min(24px, 45%); border-radius: 2px; background: #fff; box-shadow: 0 0 3px rgb(0 0 0 / 40%); }
.art-clip.sizing { box-shadow: inset 0 0 0 2px var(--accent); }
.art-clip.lifting { opacity: 0.35; }
.art-drop-at { position: absolute; top: 18px; height: calc(var(--lane-v) + 8px); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); pointer-events: none; }
.art-drop-at[hidden] { display: none; }
/* what is being dragged, under the finger */
.art-ghost {
  position: fixed; left: 0; top: 0; z-index: 70; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; pointer-events: none;
  background: var(--surface-2); box-shadow: 0 14px 34px rgb(0 0 0 / 40%); outline: 2px solid var(--accent); animation: ip-fade 0.15s ease both;
}
.art-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-grid { display: flex; align-items: flex-start; gap: 10px; }
.art-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.art-piece {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: var(--ratio, auto); background: var(--surface-2); box-shadow: var(--shadow);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.art-piece img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art-piece.wait img { opacity: 0.55; }
.art-piece .im-shine { position: absolute; inset: 0; }
.art-fail {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px;
  background: rgb(10 8 6 / 55%); color: #fff; font-size: 0.82rem; font-weight: 600; text-align: center;
}
.art-fail svg { width: 22px; height: 22px; }

/* ---------- From Ignis, several at once ---------- */

.art-sheet .im-sheet-body { padding-bottom: 10px; }
.art-sheet .im-row { padding-top: 5px; padding-bottom: 8px; }
.art-sheet-foot { flex: none; margin: 0 -16px; padding: 10px 16px calc(12px + var(--inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.art-tick { user-select: none; -webkit-user-select: none; }
.art-tick-n {
  position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; background: rgb(0 0 0 / 22%); color: #fff; font: 700 0.8rem/1 var(--sans); box-shadow: 0 1px 4px rgb(0 0 0 / 30%);
}
.art-tick.on .art-tick-n { background: var(--accent); }
.art-tick.on img { opacity: 0.85; }

@media (min-width: 700px) {
  .art-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .art .im-bar { max-width: 1180px; padding-inline: 28px; }
  .art-body { max-width: 1180px; padding-inline: 28px; }
  .art-new.btn { display: inline-flex; width: auto; padding-inline: 1.4rem 1.7rem; }
  .art-items { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 18px; margin-top: 22px; }
  .art-pick { padding-top: 8vh; }
  .art-pick .art-from { width: min(100%, 640px); margin: 0 auto; }
  .art-pick .art-from button { aspect-ratio: 1 / 0.6; }
  .art-grid, .art-col { gap: 14px; }
  .art-time { left: max(0px, calc(50% - 590px)); right: max(0px, calc(50% - 590px)); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding-inline: 18px; }
  .art-sheet { left: max(0px, calc(50% - 380px)); right: max(0px, calc(50% - 380px)); }
}
@media (prefers-reduced-motion: reduce) {
  .art-list, .art-pick, .art-one { animation: none; }
}

/* ---------- a clip's effects (js/art-fx.js): the stack as chips, one effect's settings under it ---------- */

.art-fx { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.art-fx-head { display: flex; align-items: center; gap: 6px; }
.art-fx-chips, .art-fx-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.art-fx-chips::-webkit-scrollbar, .art-fx-row::-webkit-scrollbar { display: none; }
.art-fx-head .art-small-done { flex: none; margin-inline-start: 0; }
.art-chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: 600 0.78rem var(--sans); white-space: nowrap;
}
.art-chip svg { width: 16px; height: 16px; flex: none; }
.art-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.art-chip-icon { width: 32px; padding: 0; justify-content: center; }
.art-chip-s { height: 28px; padding: 0 9px; font-size: 0.72rem; }
.art-fx-set { display: flex; flex-direction: column; gap: 10px; max-height: 196px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px 4px; }
.art-fx-param { display: flex; flex-direction: column; gap: 2px; }
.art-fx-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 0.76rem var(--sans); color: var(--ink-2); }
.art-fx-modes { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.art-mode { height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font: 600 0.68rem var(--sans); }
.art-mode.on { background: var(--accent-soft); color: var(--ink); }
.art-fx-line { display: flex; align-items: center; gap: 6px; }
.art-fx-sub { flex: none; width: 3.4em; font: 600 0.66rem var(--sans); color: var(--ink-3); }
.art-fx-choices { display: flex; gap: 6px; flex-wrap: wrap; }
.art-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 40%); }
.art-swatch-white { background: #fff; }
.art-swatch-gold { background: #ffc468; }
.art-swatch-blue { background: #82b9ff; }
.art-swatch-rose { background: #ff8caf; }
.art-fx-remove {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 10px;
  background: none; color: #e0675c; font: 600 0.76rem var(--sans);
}
.art-fx-remove svg { width: 16px; height: 16px; }
/* a clip with effects: a small spark in its corner */
.art-clip-fx { position: absolute; top: 4px; left: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / 60%); color: #ffc468; pointer-events: none; }
.art-clip-fx svg { width: 14px; height: 14px; }

/* ---------- Artifex (js/art-artifex.js): the clip's conversation, its versions, a box to talk ---------- */

.art-tool[hidden] { display: none; }
.art-tool-ax { color: var(--ink); }
.art-tool .acc { fill: var(--accent); }
/* the animation's sealed frame (js/art-stage.js), exactly over the preview; never under a finger */
.art-anim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; color-scheme: normal; }
.art-anim[hidden] { display: none; }
.art-ax { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 680px; margin: 0 auto; }
.art-ax-head { display: flex; align-items: center; gap: 2px; }
.art-ax-head .art-small-done { margin-inline-start: auto; }
.art-ax-btn {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink-2);
}
.art-ax-btn svg { width: 19px; height: 19px; }
.art-ax-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.art-ax-btn:disabled { opacity: 0.3; }
.art-ax-ver { min-width: 6.5em; text-align: center; font: 600 0.78rem var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.art-ax-thread {
  display: flex; flex-direction: column; gap: 6px; max-height: min(132px, 22vh); overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 0;
  scrollbar-width: thin;
}
.art-ax-thread:empty { display: none; }
.art-ax-hint { margin: 0; font: 500 0.8rem/1.35 var(--sans); color: var(--ink-3); }
.art-ax-you, .art-ax-them { max-width: 86%; margin: 0; padding: 7px 11px; border-radius: 14px; font: 500 0.84rem/1.35 var(--sans); overflow-wrap: anywhere; white-space: pre-wrap; }
.art-ax-you { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-end-end-radius: 4px; }
.art-ax-them { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--surface-2); color: var(--ink); border-end-start-radius: 4px; }
.art-ax-them.failed { color: #e0675c; }
.art-ax-them.working { color: var(--ink-2); }
.art-ax-dots { width: 22px; height: 8px; flex: none; background: radial-gradient(circle, currentColor 2.4px, transparent 2.8px) 0 50% / 8px 8px repeat-x; animation: art-ax-dots 1.1s ease-in-out infinite; }
@keyframes art-ax-dots { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.art-ax-opts { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.art-ax-chip {
  flex: none; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.78rem var(--sans);
}
.art-ax-chip:disabled { opacity: 0.4; }
/* a version Artifex made: its number; lit while the clip is on it, a tap goes to it */
.art-ax-v {
  flex: none; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2);
  font: 700 0.68rem var(--sans);
}
.art-ax-v.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.art-ax-foot { display: flex; align-items: center; gap: 8px; font: 600 0.8rem var(--sans); color: #e0675c; }
.art-ax-foot[hidden] { display: none; }
.art-ax-say { display: flex; align-items: flex-end; gap: 6px; }
.art-ax-input {
  flex: 1; min-width: 0; min-height: 38px; max-height: 88px; resize: none; padding: 8px 12px; border-radius: 19px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 0.9rem/1.35 var(--sans);
}
.art-ax-input:focus { outline: none; border-color: var(--accent); }
.art-ax-send {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
}
.art-ax-send svg { width: 19px; height: 19px; }
.art-ax-send:disabled { opacity: 0.4; }
.art-clip-fx.broken { color: #e0675c; }

/* ---------- sounds (js/art-sound.js): a tile among the pieces, a clip on the audio strip ---------- */

.art-sound { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #4a1f2d, #2a1119); }
.art-sound-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.art-sound-line {
  position: absolute; left: 8px; right: 8px; bottom: 7px; display: flex; align-items: center; gap: 5px; color: #fff;
  font: 600 0.72rem/1.2 var(--sans); text-shadow: 0 1px 3px rgb(0 0 0 / 60%); pointer-events: none;
}
.art-sound-line svg { flex: none; width: 15px; height: 15px; color: var(--accent); }
.art-sound-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.art-sound-len { flex: none; opacity: 0.8; font-variant-numeric: tabular-nums; }
.art-grid[data-size='small'] .art-sound-line { font-size: 0.6rem; left: 5px; right: 5px; bottom: 4px; }
.art-sound-clip { background: linear-gradient(180deg, #5a2536, #3a1622); }
.art-sound-clip .art-clip-s { max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; bottom: 3px; }
.art-ghost.sound { display: grid; place-items: center; color: var(--accent); background: linear-gradient(135deg, #4a1f2d, #2a1119); }
.art-ghost.sound svg { width: 30px; height: 30px; }
/* a sound picked: only what fits a sound (Timing, Delete, Close) */
.art-clip-tools[data-lane='audio'] .art-v-only { display: none; }
/* the menu's choice that is not there yet (Add › Video) */
#art-menu .im-mi:disabled { opacity: 0.38; }
/* a yes or no (a video's sound) */
.art-ask-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- a sound's polish (Faris 2026-11-22): its left edge trims the start; the Sound panel ---------- */

.art-clip-grip.start { left: 0; right: auto; background: linear-gradient(to left, transparent, rgb(0 0 0 / 38%)); }
.art-clip.slim .art-clip-grip.start { display: none; }
.art-sound-clip .art-clip-s { left: 22px; }
.art-clip-tools:not([data-lane='audio']) .art-a-only { display: none; }
.art-snd { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 680px; margin: 0 auto; }
.art-snd-row { display: flex; align-items: center; gap: 8px; }
.art-snd-label { flex: none; width: 4.8em; font: 600 0.72rem/1.15 var(--sans); color: var(--ink-2); }
.art-snd-fades { gap: 12px; }
.art-snd-half { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.art-snd-half .art-snd-label { width: auto; max-width: 4.2em; }
.art-snd .bs { height: 36px; --bs-y: 24px; }
.art-snd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }

/* snapping (js/art.js snapped): the line an edge being dragged sits on, across both strips */
.art-snap {
  position: absolute; top: 0; height: calc(28px + var(--lane-v) + var(--lane-a)); width: 2px; margin-left: -1px; border-radius: 1px;
  background: var(--accent); box-shadow: 0 0 6px var(--accent); pointer-events: none; z-index: 3;
}
.art-snap[hidden] { display: none; }

/* a picture's fades on its clip (js/art.js fadeShade): darker where less of it shows */
.art-clip-fade { position: absolute; inset: 0; pointer-events: none; }
#art-menu .im-mi span { white-space: nowrap; } /* (a fade's line: never broken mid-way) */
/* a picture's blend with the one beside it (js/art.js Blend): a gold wash over where it blends, strongest at the cut */
.art-clip-blend { position: absolute; top: 0; bottom: 0; pointer-events: none; border-top: 2px solid var(--accent); }
.art-clip-blend.prev { left: 0; background: linear-gradient(to left, transparent, color-mix(in srgb, var(--accent) 42%, transparent)); }
.art-clip-blend.next { right: 0; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 42%, transparent)); }

/* Export (Faris 2026-11-22): words in the top bar's corner (the call ring's, between calls) */
.art-export-gap { display: flex; justify-content: flex-end; }
.art-export {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--accent); background: none; color: var(--accent);
  font: 700 0.85rem var(--sans); letter-spacing: 0.02em; white-space: nowrap;
}
.art-export:active { background: var(--accent-soft); }
.art-export[hidden] { display: none; }
.call-corner .art .art-export { margin-right: 50px; } /* (on a call, its ring keeps the corner) */
/* Export at work */
.art-busy-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 10px; }
.art-busy-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 0.15s linear; }
.art-busy-row { display: flex; align-items: center; justify-content: space-between; font: 600 0.85rem var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.art-ask-row { flex-wrap: wrap; }
.im-gap.art-export-gap { width: auto; min-width: 40px; }

/* ---------- the preview full screen (Faris 2026-11-22) ---------- */
/* its button: the preview's bottom right corner */
.art-full-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 10px; background: rgb(0 0 0 / 45%); color: #fff; backdrop-filter: blur(6px);
}
.art-full-btn svg { width: 18px; height: 18px; }
.art-stage.cropping .art-full-btn, .art-stage.full .art-full-btn { display: none; }
/* the video alone over the whole screen */
.art-stage.full {
  position: fixed; inset: 0; z-index: 90; min-height: 0; padding: 0; gap: 0; background: #000; justify-content: center; animation: none;
}
.art-stage.full .art-play, .art-stage.full .art-panel, .art-stage.full .art-crop-tools { display: none !important; }
.art-stage.full .art-frame-box { border-radius: 0; box-shadow: none; }
.art-full-ui { display: none; }
.art-stage.full .art-full-ui { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
.art-stage.full.controls .art-full-ui { opacity: 1; }
.art-stage.full.controls .art-full-ui button { pointer-events: auto; }
.art-full-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgb(0 0 0 / 50%); color: #fff; backdrop-filter: blur(6px);
}
.art-full-play svg { width: 36px; height: 36px; }
.art-full-play .ic-pause, .art-stage.playing .art-full-play .ic-play { display: none; }
.art-stage.playing .art-full-play .ic-pause { display: block; }
.art-full-exit {
  position: absolute; right: 16px; bottom: calc(16px + var(--inset-bottom)); width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 12px; background: rgb(0 0 0 / 50%); color: #fff; backdrop-filter: blur(6px);
}
.art-full-exit svg { width: 22px; height: 22px; }
