/* Colour pass 2. Loaded last. Finishes what 35-color.css started: the dock's
   current room (an id-bearing rule beat the first attempt), hover and pressed
   surfaces that still carried untinted greys, form-field focus, "playing" state
   on cards, and the invalid-field colour. Same roles: azure = selected/active,
   neutral ink tint = surface, red = error only. */

/* Dock: current room, hover, press. */
html.graphite63.studio59 dialog.g-room63:is(#detail,#palette-panel,#library-room63,#motion-room50,#post-panel50,#export-menu49) .dock63 button[aria-current=page]{
  background:var(--accent-wash);
  color:var(--accent-strong);
  box-shadow:inset 0 -2px 0 var(--accent);
}
html.graphite63.studio59 dialog.g-room63:is(#detail,#palette-panel,#library-room63,#motion-room50,#post-panel50,#export-menu49) .dock63 button:not(:disabled):not([aria-current=page]):hover{
  background:var(--g-hover);
  color:var(--g-text);
}
html.graphite63.studio59 dialog.g-room63:is(#detail,#palette-panel,#library-room63,#motion-room50,#post-panel50,#export-menu49) .dock63 button:not(:disabled):active{
  background:oklch(.3 .01 var(--hue-ink));
}
@media(forced-colors:none){
  html.graphite63.studio59 dialog.g-room63:is(#detail,#palette-panel,#library-room63,#motion-room50,#post-panel50,#export-menu49) .dock63 button:focus-visible{
    outline-color:var(--accent);
  }
}

/* Remaining hard-coded hover greys, now on the tinted scale. */
html.graphite63.studio59 #gallery-zero-adjust73:is(:focus-visible,:hover),
html.graphite63.studio59 #tile-menu59 button:is(:hover,:focus-visible){
  background:var(--g-hover);
}

/* Cards: the one that is playing or expanded reads as active. */
html.graphite63.studio59 #fields .finish-card54>.tile-play54[aria-pressed=true]::before{
  border-color:var(--accent);
}
html.graphite63.studio59 #fields .finish-card54>.card-motion59[aria-expanded=true]{
  color:var(--accent-strong);
}

/* Form fields: border warms to the accent on focus, brightens on hover. */
@media(forced-colors:none){
  html.graphite63 :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
    transition:border-color var(--dur-state,.2s) var(--ease-out,ease-out),background-color var(--dur-state,.2s) var(--ease-out,ease-out);
  }
  html.graphite63 :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea):hover{
    border-color:oklch(.55 .014 var(--hue-ink));
  }
  html.graphite63 :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea):focus-visible{
    border-color:var(--accent);
  }
}

/* Error: the only red in the interface, always beside text. */
html.graphite63.studio59 #palette-panel input[aria-invalid=true]{
  outline-color:var(--danger);
}

/* Batch progress count reads as live information. */
html.graphite63 #gallery-work-count48{color:var(--accent-strong)}
html.graphite63 a:not([class]){color:var(--accent-strong);text-underline-offset:.2em;text-decoration-color:var(--accent-line)}
html.graphite63 a:not([class]):hover{text-decoration-color:currentColor}
