/* Symaro website editor: app and account pages. Brand colours match symaro.com. */
:root {
  --navy: #17212c; --navy-2: #1f2d3d; --accent: #cc431f; --accent-hover: #b13a1a; --accent-soft: #fdf0ea;
  --paper: #fafaf7; --tint: #f0f1ec; --white: #fff; --ink: #1b2022; --muted: #5c6466; --line: #dadfd8; --line-strong: #c3cac4;
  --ok: #1f7a4d; --ok-soft: #e6f4ec; --warn: #8a5a00; --warn-soft: #fff4d6; --error: #b42318; --error-soft: #fdecea;
  --radius: 12px; --shadow: 0 1px 2px rgba(23,33,44,.05), 0 8px 24px -12px rgba(23,33,44,.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--accent-hover); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid rgba(204,67,31,.45); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(26px, 2.2vw + 14px, 36px); margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 48px; min-height: 70vh; }
main.wide { max-width: 1240px; }

.app-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 17px; }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); }
.app-header nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.app-header nav a:hover { color: var(--accent-hover); }
.banner { background: var(--warn-soft); border-bottom: 1px solid #f0d58a; padding: 10px 0; font-size: 15px; }
.app-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; color: var(--muted); }
.app-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.app-footer a { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--white); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--tint); color: var(--navy); border-color: var(--navy); }
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #8f1d14; border-color: #8f1d14; }
.btn-small { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-hover); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card.danger { border-color: #f1b8b0; }
.card.empty { text-align: center; padding: 40px 22px; }
.hero-card { padding: 32px 0 8px; max-width: 760px; }
.hero-card h1 { font-size: clamp(30px, 3vw + 14px, 46px); }
.ticks { padding-left: 20px; color: var(--muted); }
.ticks li { margin: 6px 0; }
.prose { max-width: 760px; }
.license { white-space: pre-wrap; font-size: 12px; background: var(--tint); padding: 12px; border-radius: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 20px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.title-row h1 { margin: 0; }

.stack { display: grid; gap: 14px; }
.stack.two-col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: end; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--ink); }
input, select, textarea { font: 16px/1.4 var(--font); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
input[type=checkbox] { width: auto; margin-top: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(23,33,44,.15); }
.addr { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--white); }
.addr input { border: 0; border-radius: 0; min-width: 0; }
.addr .addr-before { padding-right: 2px; }
.addr span { padding: 0 12px; color: var(--muted); font-weight: 400; white-space: nowrap; background: var(--tint); align-self: stretch; display: flex; align-items: center; }

.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.notice-ok { background: var(--ok-soft); border-color: #a8d5bc; color: #14532d; }
.notice-warn { background: var(--warn-soft); border-color: #f0d58a; color: #5c3d00; }
.notice-error { background: var(--error-soft); border-color: #f1b8b0; color: #7a1a12; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; background: var(--tint); color: var(--muted); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-error { background: var(--error-soft); color: var(--error); }
.pill-premium { background: var(--navy); color: #f6d3c5; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--paper); }
.table.small { font-size: 13px; }
.table tbody tr:hover { background: #fcfcfa; }

.site-list, .template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 28px; }
.site-card, .template-card { margin: 0; display: flex; flex-direction: column; }
.site-card h2, .template-card h3 { margin: 10px 0 6px; font-size: 18px; }
.site-card h2 a { color: var(--navy); text-decoration: none; }
.template-card .actions, .site-card .actions { margin-top: auto; padding-top: 8px; }
.swatches { display: flex; height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.swatches span { flex: 1; }
@media (max-width: 640px) { .app-header nav { gap: 12px; font-size: 15px; } .card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
