/* Dashboard tiles, details page and expiry highlights (added in Phase 3). */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.tile { display: block; padding: 0.9rem 1rem; border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 6px; background: #fff; text-decoration: none; color: var(--text); }
.tile:hover { background: var(--lime-tint); color: var(--text); }
.tile.active { background: var(--lime-tint); border-color: var(--grey); border-top-color: var(--lime); }
.tile.alert { border-top-color: var(--error); }
.tile .n { display: block; font: 700 1.75rem/1.1 var(--head); }
.tile .l { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--grey); }
.exp-soon { font-weight: 700; color: #8a5a00; }
.exp-bad { font-weight: 700; color: var(--error); }
td a.dlink { font-size: inherit; margin: 0; color: var(--text); text-decoration: none; }
td a.dlink:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.btn { display: inline-block; padding: 0.5rem 1.1rem; border-radius: 4px; background: var(--lime); color: var(--text); font: 700 0.875rem var(--head); text-decoration: none; }
.btn:hover { background: var(--lime-dark); color: var(--text); }
.detail { max-width: 52rem; }
.detail th { width: 11rem; background: #f6f6f6; color: var(--text); vertical-align: top; white-space: normal; }
.detail td { white-space: normal; }
.detail td:first-child { font-family: inherit; font-weight: 400; }
main h2 { margin: 2rem 0 0.75rem; font: 700 1.125rem var(--head); }

/* Row actions on the list: same outline for both, lime for Edit, red for Delete. */
td .row-actions { display: inline-flex; align-items: center; gap: 0.9rem; }
td .row-actions .act, td .row-actions button.act {
  display: inline-block; margin: 0; padding: 0.25rem 0.8rem; border: 2px solid; border-radius: 4px;
  background: transparent; font: 600 0.75rem/1.4 var(--head); text-decoration: none; cursor: pointer;
}
td .row-actions .act-edit { border-color: var(--lime-dark); color: var(--text); }
td .row-actions .act-edit:hover { background: var(--lime-tint); text-decoration: none; }
td .row-actions button.act-del { border-color: var(--error); color: var(--error); }
td .row-actions button.act-del:hover { background: #fdf1f0; }

/* Details page: Back to List on its own line, then Edit and Delete side by side. */
.back { margin: 0 0 0.75rem; }
.back a { font: 600 0.875rem var(--head); color: var(--grey); text-decoration: none; }
.back a:hover { color: var(--text); text-decoration: underline; }
.actions { gap: 0.9rem; }
button.btn-del { padding: 0.5rem 1.1rem; border-radius: 4px; background: var(--error); color: #fff; font: 700 0.875rem var(--head); }
button.btn-del:hover { background: #7f1913; }

/* Settings lists */
ul.items { list-style: none; padding: 0; margin: 0 0 0.75rem; max-width: 40rem; }
ul.items li { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.items li .muted { color: var(--grey); font-size: 0.8125rem; margin-left: auto; }
ul.items li form { margin: 0; }
ul.items button.act { padding: 0.15rem 0.6rem; border: 2px solid var(--error); border-radius: 4px; background: transparent; color: var(--error); font: 600 0.75rem var(--head); }
ul.items button.act:hover { background: #fdf1f0; }
.inline-add { margin: 0 0 1.5rem; }
ul.items li .ns { margin: 0; font-size: 0.8125rem; word-break: break-all; }

/* Domain only mode, and the domain type badges (Primary, Addon, Registration). */
.mode-domain_only { border-color: var(--lime-dark); color: var(--text); background: #fff; }
.type { display: inline-block; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.type-primary { border-color: var(--lime-dark); background: var(--lime-tint); }
.type-addon { color: var(--grey); }
.type-registration { background: #f6f6f6; color: var(--grey); }
