/* The owner's settings pages, made for a phone first. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.45; background: #EEF1F4; color: #15191E; }
a { color: #2F6FB3; }
a:focus, button:focus, input:focus, select:focus, summary:focus { outline: 3px solid #F2B84B; outline-offset: 2px; }
.wrap { max-width: 640px; margin: 0 auto; padding: 1.4rem 1rem 3rem; }

header .addr { font-size: 0.875rem; font-weight: 600; color: #4F5864; text-decoration: none; display: inline-block; padding: 0.4rem 0; }
header h1 { margin: 0.1rem 0 0; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; }

.tabs { display: flex; padding: 4px; border-radius: 14px; background: #DDE2E8; margin: 1rem 0 0.25rem; }
.tabs a { flex: 1 1 0%; display: block; text-align: center; min-height: 44px; line-height: 44px; border-radius: 10px; color: #4F5864; font-weight: 700; text-decoration: none; }
.tabs a + a { margin-left: 4px; }
.tabs a.on { background: #FFFFFF; color: #15191E; }

.msg { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 12px; background: #E3F1E8; color: #1F5C38; font-weight: 600; }

.card { background: #FFFFFF; border-radius: 16px; padding: 1.1rem 1rem 1.2rem; margin-top: 0.9rem; }
.card h2 { margin: 0; display: flex; align-items: center; font-size: 1.15rem; font-weight: 800; }
.card h3 { margin: 1.2rem 0 0; font-size: 1rem; font-weight: 800; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico.tile { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #E6EEF8; color: #2F6FB3; margin-right: 0.75rem; }
.hint { margin: 0.5rem 0 0; color: #4F5864; font-size: 0.95rem; }
.small { font-size: 0.8rem; word-break: break-word; }
.bad { color: #A1260D; }

.list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.list li { display: flex; align-items: center; padding: 0.65rem 0; border-top: 1px solid #EEF1F4; }
.list.plain li { padding: 0; }
.list li:first-child { border-top: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.meta { display: block; font-size: 0.85rem; color: #4F5864; word-break: break-word; }
.meta.bad { color: #A1260D; }
.meta-inline { font-size: 0.85rem; color: #4F5864; }
.status-on { font-size: 0.85rem; font-weight: 700; color: #1F6B42; }
.row-link { display: flex; align-items: center; width: 100%; min-height: 64px; padding: 0.6rem 0; color: #15191E; text-decoration: none; }
.chev { font-size: 1.6rem; color: #5F6873; margin-left: 0.5rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 0.75rem; flex-shrink: 0; }
.c0 { background: #F2B84B; }
.c1 { background: #2F6FB3; }
.c2 { background: #2E7D4F; }
.c3 { background: #B5502F; }

label { display: block; font-size: 0.9rem; font-weight: 700; margin: 0.9rem 0 0.3rem; }
input[type="text"], input[type="url"], input[type="password"], input[type="date"], input[type="time"], select {
  display: block; width: 100%; min-height: 48px; padding: 0 0.8rem; border: 1.5px solid #8A93A0; border-radius: 12px;
  background: #FFFFFF; color: #15191E; font: inherit; -webkit-appearance: none; appearance: none;
}
select { background-image: none; }
.code-input { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.2em; }
label.check { display: flex; align-items: center; font-weight: 600; min-height: 44px; margin-top: 0.9rem; }
label.check input { width: 22px; height: 22px; margin: 0 0.7rem 0 0; flex-shrink: 0; }
.pair-fields { display: flex; }
.pair-fields > div { flex: 1 1 0%; }
.pair-fields > div + div { margin-left: 0.8rem; }

.btn { display: inline-block; min-height: 48px; padding: 0 1.2rem; margin-top: 1rem; border: 0; border-radius: 14px; background: #2F6FB3; color: #FFFFFF; font: inherit; font-weight: 800; cursor: pointer; }
.btn.quiet { background: #E6EEF8; color: #1F4F85; }
.btn.danger { background: #FBE4DE; color: #8A2A12; }
.btn.small { min-height: 44px; padding: 0 0.9rem; margin: 0 0 0 0.6rem; font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }
.quick { display: flex; flex-wrap: wrap; margin-top: 0.4rem; }
.quick form { margin-right: 0.6rem; }
.err { margin: 0.4rem 0 0; color: #A1260D; font-weight: 600; font-size: 0.9rem; }
details { margin-top: 0.8rem; }
details summary { cursor: pointer; color: #2F6FB3; font-weight: 700; min-height: 44px; line-height: 44px; }
details p { margin: 0.5rem 0 0; font-size: 0.95rem; color: #2B3138; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 1.6rem; font-size: 0.95rem; }
.foot a { display: inline-block; padding: 0.7rem 0; }
.linkish { background: none; border: 0; padding: 0.7rem 0; font: inherit; color: #2F6FB3; text-decoration: underline; cursor: pointer; }
