/* What every storefront theme (templates/sf/) shares: the key forms, the maintenance clock, the
   logo, the language links. Each theme's file (themes/<theme>.css) gives them their look. */
.sf-form { display: grid; gap: 8px; }
.sf-label { font-size: 12.5px; color: var(--text-3); }
.sf-field { position: relative; display: flex; align-items: center; gap: 8px; }
.sf-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.sf-input::placeholder { color: var(--text-3); opacity: 1; }
.sf-input.is-invalid { color: var(--bad); }
.sf-clear { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); }
.sf-clear:hover { color: var(--text); background: var(--surface-2); }
.sf-clear .i { width: 14px; height: 14px; }
.sf-hint:empty { display: none; }
.sf-hint { font-size: 13px; color: var(--text-3); }
.sf-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; }
.sf-form button[type="submit"]:disabled { cursor: default; }
.sf-form button[type="submit"].is-loading { position: relative; color: transparent !important; pointer-events: none; }
.sf-form button[type="submit"].is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; border-color: var(--on-accent) var(--on-accent) transparent transparent; animation: spin .7s linear infinite; }
.mode-panel[hidden] { display: none !important; }

.sf-maint { display: grid; gap: 10px; text-align: left; }
.sf-maint-tag { justify-self: start; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.sf-maint h2 { font-size: 22px; }
.sf-maint p { color: var(--text-2); font-size: 14.5px; }
.sf-maint-clock { font: 600 40px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sf-maint-bar { height: 4px; background: var(--surface-3); overflow: hidden; border-radius: 4px; }
.sf-maint-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }
.sf-maint-eta:empty { display: none; }

.sf-results { margin-top: var(--s8); }
.sf-results[hidden] { display: none; }

.sf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.sf-logo img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.sf-logo b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-logo-mark { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: var(--on-accent); font-weight: 700; }

.sf-foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sf-foot-langs a { color: var(--text-3); }
.sf-foot-langs a:hover, .sf-foot-langs a[aria-current="true"] { color: var(--text); }
