.work-actions { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
.work-action { display:flex; align-items:center; gap:13px; width:100%; min-width:0; min-height:58px; padding:9px 2px; border:0; border-top:1px solid #4e4e4e; background:transparent; color:#f2f2f2; text-align:left; }
.work-action:first-child { border-top:0; }
.work-action:hover { background:#3d3d3d; }
.work-action-icon { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:#414141; color:#e4e4e4; font-size:1.15rem; }
.work-action-label { flex:1; min-width:0; overflow-wrap:anywhere; }
.work-action-arrow { flex:none; color:#c2c2c2; font-size:1.4rem; }

/* Editable work records: price above a single row of action buttons. */
.record-row.record-editable {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.record-row .row-actions.record-edit-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  min-width:0;
  max-width:none;
}
.record-edit-actions .money {
  grid-column:1 / -1;
  margin:0;
  text-align:right;
}
.record-edit-actions button {
  min-width:0;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
@media(max-width:700px) {
  .record-row.record-editable { grid-template-columns:minmax(0,1fr); gap:12px; }
  .record-row .row-actions.record-edit-actions {
    width:min(100%,320px);
    justify-self:start;
  }
  .record-edit-actions .money { text-align:left; }
}

/* Categorized work history. All categories start closed. */
.record-category { border-top:1px solid #50565a; }
.record-category > summary { display:flex; align-items:center; gap:12px; min-height:68px; padding:12px 0; cursor:pointer; list-style:none; color:#f2f2f2; }
.record-category > summary::-webkit-details-marker { display:none; }
.record-category > summary::marker { content:""; }
.record-category > summary:focus-visible { outline:2px solid #d5dcdf; outline-offset:3px; border-radius:12px; }
.record-category-name { flex:1; min-width:0; font-weight:600; overflow-wrap:anywhere; }
.record-category-count { flex:none; min-width:32px; padding:4px 9px; border-radius:20px; background:rgba(255,255,255,.09); color:#c9cdd0; text-align:center; font-size:.875rem; }
.record-category-arrow { flex:none; display:grid; place-items:center; width:22px; color:#c9cdd0; transform:rotate(90deg); transition:transform .2s ease; }
.record-category[open] > summary .record-category-arrow { transform:rotate(-90deg); }
.record-category-content { padding-bottom:12px; }
.record-category-content .record-row:last-child { border-bottom:0; }
@media(prefers-reduced-motion:reduce) { .record-category-arrow { transition:none; } }
