refactor drop redundant CSS default-overrides

Lean on browser defaults and remove restated declarations. No visual change. - Consolidate the modal-heading margin/centre resets for confirm, feedback, and profile dialogs into one grouped rule, removing a duplicate .confirm-dialog h2 rule that had drifted in twice. - Delete .confirm-dialog p, which restated the muted colour every paragraph already inherits from the base p rule. - Drop list-style:disc from ul (the ul default), and padding:0 and color from li (li padding is already 0, and li inherits ink from body). Keep li ul list-style:disc, since the nested-ul default is circle, and keep li::marker colour for cross-engine safety. No utility classes were extracted: every candidate (muted, centre, stack, cluster) proved to be a structural component property applied once, not a repeated author choice, so a utility would scatter structure into templates for no reduction in rules.

Commit
69b9c59c1deec8086c84d199f51518578eff6c9b
Author
Marius Peter <dev@marius-peter.com>
Author date
Committer
Marius Peter <dev@marius-peter.com>
Committer date
lib/web/assets/hito.css
index 078e4b0d..64148d2b 100644..100644
@@ -798,7 +798,11 @@
798 798 }
799 799 .confirm-dialog button.danger:hover { background: var(--oxblood); }
800 800 .confirm-dialog .delete-record-form { margin: 0; }
801 Removed: .confirm-dialog h2 { margin-top: 0; text-align: center; }
801 Added: /* A modal's leading heading sits flush to the top padding and centers over the
802 Added: dialog body. Shared by every dialog that opens with a title. */
803 Added: .confirm-dialog h2,
804 Added: .feedback-modal-content h2,
805 Added: .profile-dialog h3 { margin-top: 0; text-align: center; }
802 806
803 807 .logbook-change-list {
804 808 display: grid;
@@ -1224,8 +1228,6 @@
1224 1228 .confirm-dialog::backdrop {
1225 1229 background: rgba(26, 26, 22, 0.45);
1226 1230 }
1227 Removed: .confirm-dialog h2 { margin-top: 0; }
1228 Removed: .confirm-dialog p { color: var(--muted-ink); }
1229 1231 .confirm-dialog button {
1230 1232 width: 100%;
1231 1233 min-height: 3rem;
@@ -1268,7 +1270,6 @@
1268 1270 .feedback-modal::backdrop { background: rgba(26, 26, 22, 0.45); }
1269 1271 .feedback-modal[open] { animation: modal-enter 180ms ease both; }
1270 1272 .feedback-modal-content { padding: 1.25rem; }
1271 Removed: .feedback-modal-content h2 { margin-top: 0; text-align: center; }
1272 1273
1273 1274 .settings-section {
1274 1275 max-width: 32rem;
@@ -1351,7 +1352,6 @@
1351 1352 }
1352 1353 .profile-dialog[open] { animation: modal-enter 180ms ease both; }
1353 1354 .profile-dialog::backdrop { background: rgba(26, 26, 22, 0.45); }
1354 Removed: .profile-dialog h3 { margin-top: 0; text-align: center; }
1355 1355
1356 1356 .done {
1357 1357 color: var(--evergreen);
@@ -1363,12 +1363,9 @@
1363 1363 ul {
1364 1364 margin: 1rem 0;
1365 1365 padding-left: 1.5rem;
1366 Removed: list-style: disc;
1367 1366 }
1368 1367 li {
1369 1368 margin: 0.4rem 0;
1370 Removed: padding: 0;
1371 Removed: color: var(--ink);
1372 1369 }
1373 1370 li::marker { color: var(--ink); }
1374 1371 li ul {