* { box-sizing: border-box; }
body {
  margin: 0; background: #f5f6f7; color: #14202b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #0b6b73; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }
.top {
  max-width: 1040px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid #e2e6ea;
}
.brand { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand span { color: #7b8794; font-weight: 600; }
.top nav { display: flex; gap: 18px; font-size: 13.5px; font-weight: 600; }

h1 { font-size: 26px; letter-spacing: -.02em; margin: 26px 0 6px; }
.sub { color: #66727e; font-size: 14.5px; margin: 0 0 26px; line-height: 1.55; }

.card { background: #fff; border: 1px solid #e2e6ea; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.card h2 { font-size: 15px; margin: 0 0 14px; letter-spacing: -.01em; }
.card h2 + p { margin-top: -8px; color: #66727e; font-size: 13.5px; line-height: 1.5; }

label { display: block; font-size: 12.5px; font-weight: 700; color: #46535f; margin: 0 0 6px; }
input[type=text], input[type=url], input[type=email], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid #d3dae0; border-radius: 8px;
  font: inherit; font-size: 14px; background: #fff; color: #14202b;
}
input:focus, textarea:focus { outline: 2px solid #0b6b73; outline-offset: 1px; border-color: #0b6b73; }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: #7b8794; margin-top: 5px; line-height: 1.45; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  background: #0b6b73; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #095a61; }
.btn.secondary { background: #fff; color: #14202b; border-color: #d3dae0; }
.btn.secondary:hover { background: #f0f2f4; }
.btn.danger { background: #b3261e; }
.btn.danger:hover { background: #961f18; }
.btn.big { min-height: 50px; padding: 0 26px; font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #7b8794; padding: 0 10px 10px; font-weight: 800; }
td { padding: 12px 10px; border-top: 1px solid #edf0f3; vertical-align: middle; }
tr:hover td { background: #fafbfc; }

.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill.live { background: #e3f2e8; color: #1e6b36; }
.pill.draft { background: #fdf0d8; color: #8a5a00; }

.notice { padding: 12px 14px; border-radius: 9px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.notice.warn { background: #fdf3e2; border: 1px solid #f0d9a8; color: #7a5300; }
.notice.error { background: #fdecea; border: 1px solid #f3c4c0; color: #8c2018; }
.notice.ok { background: #e8f5ec; border: 1px solid #bfe0c8; color: #1e6b36; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

.empty { text-align: center; padding: 50px 20px; color: #66727e; }
.empty p { margin: 0 0 18px; }

.login { max-width: 400px; margin: 12vh auto 0; }
.login .card { padding: 28px; }
.login h1 { margin-top: 0; font-size: 22px; }

.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sw { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #d3dae0; }

.preview-frame { width: 100%; height: 620px; border: 1px solid #e2e6ea; border-radius: 10px; background: #fff; }
.meta { font-size: 13px; color: #66727e; }
.meta code { background: #f0f2f4; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }
@media (max-width: 700px) {
  .grid2 { grid-template-columns: 1fr; }
  .top nav { gap: 12px; font-size: 12.5px; }
}
