/* Pixr Cloud Lite — same family as Pixr Search Lite. CSS2 first. */

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #1e293b;
  background: #ffffff;
}

a { color: #6d28d9; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #5b21b6; }

img { border: 0; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
}

.brand {
  margin: 0 0 12px 0;
  padding: 0 0 10px 0;
  border-bottom: 2px solid #cbd5e1;
  font-size: 15px;
}

.brand img {
  vertical-align: middle;
  margin-right: 8px;
}

.brand b {
  font-size: 16px;
  color: #1e293b;
}

h1 {
  font-size: 16px;
  margin: 12px 0 8px;
  color: #1e293b;
}

.tabs {
  font-size: 13px;
  margin: 0 0 12px 0;
  line-height: 1.8;
}

.tabs a,
.tabs b {
  margin-right: 14px;
}

.flash {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 10px;
  margin: 0 0 10px 0;
  font-size: 13px;
}

.flash-error {
  color: #b91c1c;
  font-weight: bold;
  border-color: #fecaca;
  background: #fff;
}

.flash-success {
  color: #15803d;
  border-color: #bbf7d0;
}

.flash-info {
  color: #1e293b;
}

input {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  max-width: 100%;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
  padding: 8px 8px;
  border: 2px solid #111;
  background: #fff;
  color: #1e293b;
}

.files {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #cbd5e1;
  background: #fff;
  margin: 0 0 8px 0;
}

.files th {
  background: #f8fafc;
  text-align: left;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13px;
}

.files td {
  border-top: 1px solid #e2e8f0;
  vertical-align: top;
  color: #334155;
}

.files b {
  color: #5b21b6;
}

.foot {
  color: #64748b;
  font-size: 12px;
}

.foot a {
  color: #6d28d9;
}

hr {
  border: 0;
  border-top: 1px solid #cbd5e1;
  height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

small {
  color: #64748b;
}

/* Extra look only. Old browsers keep native controls if ignored. */
input[type="submit"] {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  background: #2563eb;
  color: #fff;
  border: 2px solid #111;
  cursor: pointer;
}

.theme-bar {
  text-align: right;
  padding: 8px 10px 0 10px;
}

.theme-bar a {
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border: 2px solid #111;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
}

.theme-bar a:hover { text-decoration: none; }

.btn-go-light { display: none; }

html.theme-dark .btn-go-dark { display: none; }
html.theme-dark .btn-go-light { display: inline; }

html.theme-dark body {
  background: #0f172a;
  color: #e2e8f0;
}

html.theme-dark a,
html.theme-dark a:visited,
html.theme-dark .foot a {
  color: #7dd3fc;
}

html.theme-dark .wrap {
  background: #0f172a;
}

html.theme-dark .brand {
  border-bottom-color: #334155;
}

html.theme-dark .brand b,
html.theme-dark h1 {
  color: #f8fafc;
}

html.theme-dark .flash {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

html.theme-dark .flash-error {
  color: #fca5a5;
  border-color: #7f1d1d;
  background: #1e293b;
}

html.theme-dark .flash-success {
  color: #86efac;
  border-color: #166534;
}

html.theme-dark input[type="text"],
html.theme-dark input[type="password"],
html.theme-dark input[type="file"],
html.theme-dark select {
  background: #0f172a;
  color: #f8fafc;
  border-color: #94a3b8;
}

html.theme-dark .files {
  background: #1e293b;
  border-color: #334155;
}

html.theme-dark .files th {
  background: #0f172a;
  border-bottom-color: #334155;
  color: #cbd5e1;
}

html.theme-dark .files td {
  border-top-color: #334155;
  color: #cbd5e1;
}

html.theme-dark .files b {
  color: #93c5fd;
}

html.theme-dark .foot,
html.theme-dark small {
  color: #94a3b8;
}

html.theme-dark hr {
  border-top-color: #334155;
}

html.theme-dark input[type="submit"] {
  background: #2563eb;
  color: #fff;
  border-color: #93c5fd;
}

html.theme-dark .theme-bar a {
  background: #1e293b;
  color: #f8fafc;
  border-color: #94a3b8;
}

@media (prefers-color-scheme: dark) {
  html:not(.theme-light) body {
    background: #0f172a;
    color: #e2e8f0;
  }
  html:not(.theme-light) a,
  html:not(.theme-light) a:visited,
  html:not(.theme-light) .foot a {
    color: #7dd3fc;
  }
  html:not(.theme-light) .wrap { background: #0f172a; }
  html:not(.theme-light) .brand { border-bottom-color: #334155; }
  html:not(.theme-light) .brand b,
  html:not(.theme-light) h1 { color: #f8fafc; }
  html:not(.theme-light) .flash {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
  }
  html:not(.theme-light) .flash-error {
    color: #fca5a5;
    border-color: #7f1d1d;
    background: #1e293b;
  }
  html:not(.theme-light) .flash-success {
    color: #86efac;
    border-color: #166534;
  }
  html:not(.theme-light) input[type="text"],
  html:not(.theme-light) input[type="password"],
  html:not(.theme-light) input[type="file"],
  html:not(.theme-light) select {
    background: #0f172a;
    color: #f8fafc;
    border-color: #94a3b8;
  }
  html:not(.theme-light) .files {
    background: #1e293b;
    border-color: #334155;
  }
  html:not(.theme-light) .files th {
    background: #0f172a;
    border-bottom-color: #334155;
    color: #cbd5e1;
  }
  html:not(.theme-light) .files td {
    border-top-color: #334155;
    color: #cbd5e1;
  }
  html:not(.theme-light) .files b { color: #93c5fd; }
  html:not(.theme-light) .foot,
  html:not(.theme-light) small { color: #94a3b8; }
  html:not(.theme-light) hr { border-top-color: #334155; }
  html:not(.theme-light) input[type="submit"] {
    background: #2563eb;
    color: #fff;
    border-color: #93c5fd;
  }
  html:not(.theme-light) .theme-bar a {
    background: #1e293b;
    color: #f8fafc;
    border-color: #94a3b8;
  }
  html:not(.theme-light) .btn-go-dark { display: none; }
  html:not(.theme-light) .btn-go-light { display: inline; }
}

html.theme-light .btn-go-dark { display: inline; }
html.theme-light .btn-go-light { display: none; }
