:root {
  --side: #1c2358; --side-text: #fff; --side-hover: rgba(255,255,255,.08);
  --bg: #f4f5f9; --panel: #fff; --text: #222; --muted: #666; --line: #e3e5ec;
  --link: #1546b8; --primary: #0b35a6; --primary-text: #fff; --accent: #ff6c2c;
  --soft: #eef2fd; --icon: #2b2b2b; --input: #f7f8fa;
  --ok: #e7f6ec; --ok-text: #17663a; --err: #fdeceb; --err-text: #a3261b; --warn: #fff6e0; --warn-text: #8a5a00;
}
[data-theme="dark"] {
  --side: #111536; --bg: #15171f; --panel: #1f222c; --text: #e8e9ee; --muted: #9da2b0; --line: #30343f;
  --link: #8fb0ff; --primary: #3d63e0; --soft: #262d48; --icon: #d9dbe2; --input: #262a35;
  --ok: #193726; --ok-text: #8fe0ad; --err: #3d1d1a; --err-text: #ffaaa1; --warn: #3b3016; --warn-text: #ffd67a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 15px; color: var(--text); background: var(--bg); display: flex; min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .92em; }
.muted { color: var(--muted); }

/* sidebar */
.sidebar { width: 255px; flex: none; background: var(--side); color: var(--side-text); padding: 22px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: block; color: #fff; font-size: 30px; font-weight: 700; font-style: italic; letter-spacing: -.5px; padding: 6px 26px 34px; }
.brand:hover { text-decoration: none; }
.sidebar .nav { display: flex; align-items: center; gap: 12px; color: #fff; padding: 11px 26px; font-size: 17.5px; letter-spacing: .2px; }
.sidebar .nav:hover { background: var(--side-hover); text-decoration: none; }
.sidebar .nav.active { background: rgba(255,255,255,.12); box-shadow: inset 4px 0 0 var(--accent); }
.sidebar .ico { flex: none; color: #fff; }
.sidebar .ico .acc { stroke: #fff; }

/* main + top bar */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 65px; background: var(--panel); display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 5; }
.search { display: flex; align-items: center; border: 1px solid #9aa0ad; border-radius: 3px; width: 414px; max-width: 100%; height: 34px; background: var(--panel); }
.search input { border: 0; outline: 0; flex: 1; padding: 0 9px; font: inherit; font-size: 17px; background: transparent; color: var(--text); min-width: 0; }
.search button { border: 0; background: none; color: var(--text); padding: 0 8px; cursor: pointer; display: flex; }
.round { width: 35px; height: 35px; border: 1.5px solid var(--text); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; list-style: none; }
.round::-webkit-details-marker { display: none; }
.round:hover { text-decoration: none; background: var(--soft); }
.usermenu { position: relative; }
.usermenu .menu { position: absolute; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 190px; z-index: 10; }
.usermenu .menu a, .menu-head { display: block; padding: 10px 16px; color: var(--text); }
.menu-head { font-weight: 600; border-bottom: 1px solid var(--line); }
.menu-head small { display: block; font-weight: 400; color: var(--muted); }
.usermenu .menu a:hover { background: var(--soft); text-decoration: none; }
.burger { display: none; border: 0; background: none; color: var(--text); margin-right: auto; cursor: pointer; }
.impersonating { background: var(--warn); color: var(--warn-text); padding: 8px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.content { display: flex; gap: 16px; padding: 22px 18px 40px 26px; align-items: flex-start; }
.page { flex: 1; min-width: 0; }
.page-title { font-weight: 300; font-size: 40px; margin: 2px 0 26px; }

/* cards / tool sections */
.card { background: var(--panel); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 16px; cursor: pointer; user-select: none; }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 400; margin: 0; flex: 1; }
.card-head .chev { color: var(--muted); transition: transform .15s; }
.card.collapsed .chev { transform: rotate(180deg); }
.card.collapsed .card-body { display: none; }
.card.collapsed .card-head { border-bottom: 0; }
.card-head.static { cursor: default; }
.card-body { padding: 18px; }
.card-body.empty { color: var(--muted); }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; padding: 22px 18px 24px; }
.tool { display: flex; align-items: center; gap: 14px; color: var(--link); font-size: 15.5px; line-height: 1.25; min-height: 44px; }
.tool .ico { flex: none; color: var(--icon); }
.tool:hover span { text-decoration: underline; }
.tool:hover { text-decoration: none; }
.ico .acc { stroke: var(--accent); }
.ico .acc-fill { fill: var(--accent); stroke: var(--accent); }
.ico .paper { fill: var(--panel); stroke: var(--icon); }
.ico .paper-line { stroke: var(--panel); }
.section-ico .ico { color: var(--icon); }
.hidden { display: none !important; }

/* right info panel */
.info { width: 345px; flex: none; background: var(--panel); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 10px 0 6px; }
.info h2 { font-size: 15px; font-weight: 600; margin: 14px 24px 12px; }
.info-row { padding: 12px 26px 14px; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.info-row select, .fake-select { width: 100%; }
.fake-select { background: var(--input); border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; }
.info-row .btn-block { margin-top: 10px; }
.bar { height: 8px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.bar span.hot { background: #d93c2b; }

/* forms, buttons, tables */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px; font: inherit; font-weight: 400; color: var(--text);
  background: var(--input); border: 1px solid var(--line); border-radius: 3px; }
.info-row select, .domain-picker select, .inline select { margin-top: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
textarea { min-height: 110px; resize: vertical; }
textarea.code { font-family: Consolas, Menlo, monospace; font-size: 13.5px; min-height: 60vh; white-space: pre; tab-size: 4; }
.help { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 3px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--soft); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: #082a85; }
.btn-outline { background: var(--soft); border-color: var(--primary); color: var(--link); }
.btn-danger { color: #c0291b; border-color: #e9b4ae; }
.btn-danger:hover { background: var(--err); }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.toolbar .spacer { flex: 1; }
.inline { display: inline; margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin-bottom: 0; flex: 1; min-width: 160px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--input); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
.fname { display: inline-flex; align-items: center; gap: 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: var(--soft); color: var(--link); }
.badge.off { background: var(--err); color: var(--err-text); }
.alert { padding: 11px 15px; border-radius: 3px; margin-bottom: 14px; border-left: 4px solid; }
.alert-success { background: var(--ok); color: var(--ok-text); }
.alert-error { background: var(--err); color: var(--err-text); }
.alert-warning, .alert-info { background: var(--warn); color: var(--warn-text); }
.alert-info { background: var(--soft); color: var(--link); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.domain-picker { margin: -12px 0 16px; }
.domain-picker label { display: flex; gap: 10px; align-items: center; margin: 0; }
.domain-picker select { width: auto; }
.intro { color: var(--muted); margin: -14px 0 20px; max-width: 760px; }
.log { font-family: Consolas, Menlo, monospace; font-size: 13px; }
.drop { border: 2px dashed var(--line); border-radius: 4px; padding: 16px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--primary); background: var(--soft); }

/* auth pages */
body.auth { display: flex; align-items: center; justify-content: center; background: var(--side); padding: 20px; }
.auth-box { width: 400px; max-width: 100%; }
.auth-brand { color: #fff; font-size: 38px; font-weight: 700; font-style: italic; text-align: center; margin-bottom: 18px; }
.auth h1 { font-weight: 300; font-size: 26px; margin: 0 0 16px; }
.auth .card-body { padding: 26px; }

@media (max-width: 1180px) {
  .content.with-info { flex-direction: column; }
  .info { width: 100%; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 20; transition: left .2s; }
  body.nav-open .sidebar { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .burger { display: flex; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .search { width: auto; flex: 1; }
}
@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .page-title { font-size: 30px; }
  .topbar { padding: 0 16px; gap: 10px; }
}

/* fixes */
[hidden] { display: none !important; }
.topbar .search input[type=search] { border: 0; background: transparent; margin: 0; padding: 0 9px; outline: 0; }
.info .mono { word-break: break-all; font-family: inherit; font-size: inherit; }
@media (min-width: 1181px) { .content.with-info .info { margin-top: 78px; } }
@media (max-width: 1180px) { .content.with-info { align-items: stretch; } }

/* billing */
.badge.warn { background: var(--warn); color: var(--warn-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); padding: 14px 16px; border-top: 3px solid var(--primary); }
.card-body .stat { box-shadow: none; border: 1px solid var(--line); border-top-width: 3px; border-top-color: var(--primary); }
.stat.warn, .card-body .stat.warn { border-top-color: #e0a100; }
.stat.off, .card-body .stat.off { border-top-color: #d93c2b; }
.stat b { display: block; font-size: 22px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 13px; }
.billing-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 26px; background: var(--warn); color: var(--warn-text); }
.billing-banner.grace, .billing-banner.expired { background: var(--err); color: var(--err-text); }
.billing-banner span { flex: 1; min-width: 200px; }
h3.sub { font-size: 15px; font-weight: 600; margin: 8px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 901px) { body { background: linear-gradient(to right, var(--side) 255px, var(--bg) 255px); } }

/* packages */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.plan { background: var(--panel); border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--primary); position: relative; }
.plan.current { outline: 2px solid var(--primary); }
.plan .badge { position: absolute; top: 12px; right: 12px; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 600; }
.plan p { margin: 0; }
.plan .price { font-size: 30px; font-weight: 700; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; }
.plan li { padding: 5px 0 5px 22px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: #17663a; font-weight: 700; }
body.pricing-page { display: block; background: var(--bg); }
.pricing-head { background: var(--side); display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; }
.pricing-page main { max-width: 1100px; margin: 0 auto; padding: 30px 18px; }

/* PayPal */
.paypal-box { border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; background: var(--input); }
.paypal-box .pp-choice { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.paypal-box .pp-choice select { width: auto; margin: 0; }
.pp-btn { display: inline-flex; align-items: center; gap: 10px; background: #ffc439; border: 0; border-radius: 22px; padding: 10px 22px; font: inherit; font-weight: 600; color: #111; cursor: pointer; }
.pp-btn:hover { background: #f2ba36; }
.pp-logo { font-size: 17px; font-weight: 700; font-style: italic; }
.pp-logo b { color: #003087; } .pp-logo i { color: #0070e0; }
.pp-cards { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.pp-cards .cards { display: block; margin-top: 6px; }
.pp-cards em { font-style: normal; display: inline-block; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; padding: 2px 8px; margin: 0 6px 4px 0; font-size: 12px; font-weight: 600; color: var(--text); }

/* public order form */
.order summary { list-style: none; cursor: pointer; justify-content: center; }
.order summary::-webkit-details-marker { display: none; }
.order[open] summary { display: none; }
.order form { margin-top: 4px; }
.order label { margin-bottom: 10px; }
.pp-btn.btn-block { width: 100%; justify-content: center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pricing-page .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
.pp-btn { white-space: nowrap; }

/* Domain Manager */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 0 0 18px; }
.tabs a { padding: 10px 18px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tabs a:hover { color: var(--link); text-decoration: none; background: var(--soft); }
.tabs a.active { color: var(--link); border-bottom-color: var(--primary); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.form-actions .btn-primary { margin-left: auto; }
label.radio { font-weight: 400; margin-bottom: 0; }
label.radio input { margin-right: 8px; }
.dns-table td, #fwdRows td { padding: 6px 8px; }
.dns-table input, .dns-table select, #fwdRows input { margin-top: 0; min-width: 70px; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { margin-top: 0; border-radius: 3px 0 0 3px; min-width: 110px; }
.input-suffix span { padding: 8px 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 3px 3px 0; background: var(--soft); color: var(--muted); white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.facts > div { background: var(--input); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; }
.facts span { display: block; font-size: 12.5px; margin-bottom: 3px; }
#history .card-head form { margin-left: auto; }
@media (max-width: 700px) { .tabs a { padding: 8px 10px; } .form-actions .btn-primary { margin-left: 0; } }

/* Busy indicator (spinner on the clicked button + "please wait" box) */
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.spin.big { width: 38px; height: 38px; border-width: 4px; color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.busy { opacity: .85; cursor: progress; }
body.is-busy, body.is-busy * { cursor: progress !important; }
body.is-busy::before { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 40%; background: var(--accent); z-index: 1001; animation: busybar 1.1s ease-in-out infinite; }
@keyframes busybar { 0% { left: -40%; } 100% { left: 100%; } }
.busy-overlay { position: fixed; inset: 0; background: rgba(17, 21, 54, .45); display: none; align-items: center; justify-content: center; z-index: 1000; }
.busy-overlay.show { display: flex; }
.busy-card { background: var(--panel); color: var(--text); border-radius: 8px; padding: 26px 34px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.3); max-width: 90vw; }
.busy-card b { display: block; font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.busy-card small { color: var(--muted); }

/* Suppliers & Accounting */
details.inline-details { display: inline-block; vertical-align: top; }
details.inline-details > summary { list-style: none; }
details.inline-details > summary::-webkit-details-marker { display: none; }
details.inline-details .pop { margin-top: 8px; width: 270px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 14px; text-align: left; white-space: normal; }
details.inline-details .pop label { margin-bottom: 8px; font-size: 13px; }
details.inline-details .pop b { display: block; margin-bottom: 10px; font-size: 14px; }
.acc-period { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.acc-period input[type=date] { width: auto; margin: 0; padding: 5px 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); flex-wrap: wrap; }
.seg a { padding: 6px 12px; color: var(--text); font-size: 13.5px; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a:hover { background: var(--soft); text-decoration: none; }
.seg a.active { background: var(--primary); color: var(--primary-text); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.kpi span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 26px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi.pos b { color: #0f7b3f; } .kpi.neg b { color: #b42318; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 1000px) { .acc-grid { grid-template-columns: 1fr; } }
.bars { display: flex; flex-direction: column; gap: 3px; }
.bars i { display: block; height: 7px; border-radius: 3px; min-width: 2px; }
.bars i.in, .legend.in { background: #2f9e62; } .bars i.out, .legend.out { background: #e0703a; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
table.mini { width: 100%; } table.mini td { padding: 6px 0; border: 0; } table.mini tr.total td { border-top: 2px solid var(--line); font-weight: 700; padding-top: 10px; }
.acc-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.acc-forms h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
@media (max-width: 1000px) { .acc-forms { grid-template-columns: 1fr; } }
td.num { font-variant-numeric: tabular-nums; }

/* Contact & billing details */
.form-sub { font-weight: 600; font-size: 14px; margin: 6px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.billto-preview { border: 1px dashed var(--line); border-radius: 6px; padding: 14px 16px; background: var(--input); font-size: 14px; line-height: 1.5; }
.billto-preview b { display: block; font-size: 15px; margin: 6px 0 2px; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

/* Website templates gallery */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.tpl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.tpl-card.off { opacity: .6; }
.tpl-img { position: relative; aspect-ratio: 16 / 10; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tpl-img > span:first-child { font-size: 48px; font-weight: 700; color: var(--link); opacity: .35; }
.tpl-cur { position: absolute; top: 10px; left: 10px; background: #0f7b3f; color: #fff; }
.tpl-body { padding: 12px 14px; flex: 1; }
.tpl-body b { font-size: 15.5px; }
.tpl-body p { margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.tpl-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 14px; }
.tpl-actions form { margin: 0; }

/* Copyright line at the bottom of every page */
.site-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 22px 0 6px; margin-top: 18px; border-top: 1px solid var(--line); }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--link); }
.site-footer.on-dark { color: rgba(255,255,255,.65); border-top: 0; padding-top: 16px; }
.site-footer.on-dark a:hover { color: #fff; }

/* Domain search on the price list */
.dsearch { max-width: 760px; margin: 0 auto 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.dsearch h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; text-align: center; }
.dsearch-form { display: flex; gap: 8px; }
.dsearch-form input { margin: 0; font-size: 16px; padding: 11px 14px; flex: 1; }
.dsearch-form .btn { padding: 0 22px; font-size: 15px; }
.dsearch-tlds { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.dsearch-tlds b { color: var(--text); font-weight: 600; }
.dsearch-results { margin-top: 16px; border-top: 1px solid var(--line); }
.dres { display: grid; grid-template-columns: 1fr auto 110px 80px; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dres .dname { font-weight: 600; font-size: 15px; word-break: break-all; }
.dres.taken .dname { color: var(--muted); text-decoration: line-through; }
.dres .dprice { text-align: right; font-size: 14px; }
.dres .btn { justify-self: end; }
.dpicked { background: var(--soft); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; font-size: 14px; }
@media (max-width: 560px) { .dres { grid-template-columns: 1fr auto; } .dres .dprice { text-align: left; } .dsearch { padding: 16px; } }
