/* Sign-in, set-up and owner pages of KnitSure Chart. Same Fluent look as the app. */
:root { --bg: #F3F3F3; --card: #FFFFFF; --fg: #1B1B1B; --muted: #5F5F5F; --border: #E0E0E0; --line: #EDEDED; --stroke: #D1D1D1; --strong: #8A8A8A; --primary: #0B5BDB; --primary-2: #0A4CB8; --bad: #B91C1C; --bad-bg: #FEE2E2; --ok: #0F766E; --ok-bg: #DDF1EE; }
* { box-sizing: border-box; } html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, "Nirmala UI", sans-serif; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
body { background: linear-gradient(135deg, #E3EEFF 0%, #E1F5F3 52%, #ECEBFA 100%) fixed; }
body.narrow { background: linear-gradient(135deg, #061B4E 0%, #0A3FA8 48%, #0B64F2 78%, #10C7B7 100%) fixed; }
body.wide::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 150px; background: linear-gradient(90deg, #061B4E 0%, #0A3FA8 52%, #0B64F2 100%); box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .14); z-index: -1; }
main { margin: 0 auto; padding: 28px 20px 24px; } .narrow main { max-width: 430px; padding-top: 9vh; } .narrow .card { box-shadow: 0 0 8px rgba(0, 0, 0, .12), 0 14px 28px rgba(0, 0, 0, .2); } .wide main { max-width: 1180px; }
.logo { display: inline-block; margin-bottom: 18px; background: #fff; border-radius: 10px; padding: 10px 16px; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .14); } .logo img { height: 40px; display: block; } .wide .logo img { height: 30px; }
.narrow footer { color: rgba(255, 255, 255, .85); } .wide .top h1 { color: #fff; } .wide .top { min-height: 40px; }
h1 { font-size: 20px; font-weight: 600; margin: 0; } h2 { font-size: 14px; font-weight: 600; margin: 0 0 10px; } p { margin: 0; }
.card { background: var(--card); border: 0; border-radius: 8px; padding: 22px; box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .14); display: grid; gap: 12px; margin-bottom: 14px; }
label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); } input, select, button { font: inherit; color: var(--fg); }
input, select { border: 1px solid var(--stroke); border-bottom-color: var(--strong); border-radius: 4px; padding: 7px 9px; background: #fff; width: 100%; } input:focus, select:focus { outline: none; border-bottom-color: var(--primary); box-shadow: inset 0 -1px 0 var(--primary); }
button, .btn { border: 1px solid var(--stroke); border-bottom-color: #BDBDBD; background: #fff; border-radius: 4px; padding: 6px 14px; font-weight: 500; text-decoration: none; color: var(--fg); display: inline-block; cursor: pointer; } button:hover, .btn:hover { background: #F5F5F5; }
button.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; padding: 8px 14px; } button.primary:hover { background: var(--primary-2); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .grow { flex: 1; } code { background: var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 6px; padding: 9px 12px; font-weight: 500; margin-bottom: 4px; } .okmsg { background: var(--ok-bg); color: var(--ok); border-radius: 6px; padding: 9px 12px; font-weight: 500; margin-bottom: 14px; }
footer { color: var(--muted); font-size: 12px; margin-top: 18px; text-align: center; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .tiles div { background: #FAFAFA; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; } .tiles b { font-size: 24px; font-weight: 600; display: block; line-height: 1.2; } .tiles span { font-size: 12.5px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 104px; padding-top: 6px; } .bar { display: grid; justify-items: center; align-content: end; gap: 2px; height: 100%; } .bar i { width: 100%; max-width: 46px; min-height: 2px; background: var(--primary); border-radius: 3px 3px 0 0; display: block; } .bar b { font-size: 11.5px; font-weight: 600; height: 16px; order: -1; } .bar span { font-size: 11.5px; color: var(--muted); }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; } th { font-size: 12px; color: var(--muted); font-weight: 600; border-bottom-color: var(--stroke); } .n { text-align: right; font-variant-numeric: tabular-nums; } tr.off td { color: #9A9A9A; }
details summary { cursor: pointer; color: var(--primary); } details form { display: flex; gap: 6px; margin-top: 6px; } details input { width: 170px; }
.add { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; } @media (max-width: 800px) { .add, .tiles { grid-template-columns: 1fr 1fr; } }
