/* Dawnline personal portal — Vercel-like, same palette as the Outline admin. */ @font-face { font-family: Geist; src: url(geist-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215; } @font-face { font-family: Geist; src: url(geist-cyrillic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } @font-face { font-family: 'Geist Mono'; src: url(geist-mono-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; } :root { --bg: #fcfcfc; --card: #ffffff; --elevated: #ffffff; --text: #0d0d0d; --muted: #5d5d5d; --faint: #8f8f8f; --line: #0000001a; --input: #00000026; --soft: #0d0d0d0d; --soft-hover: #0d0d0d1a; --primary: #0d0d0d; --primary-fg: #ffffff; --accent: #3a83f7; --info: #2c67c5; --ok: #00a240; --ok-wash: #00a24026; --warn: #e25507; --warn-wash: #e2550726; --bad: #e02e2a; --bad-wash: #e02e2a1f; --chart: #3a83f7; --track: #0d0d0d1a; --scrim: #00000040; --shadow: 0 1px 2px -1px #00000014; --shadow-xl: 0 8px 16px -4px #0000001f; --radius: 16px; --mono: 'Geist Mono', ui-monospace, Menlo, monospace; color-scheme: light dark; } @media (prefers-color-scheme: dark) { :root { --bg: #000000; --card: #0a0a0a; --elevated: #131313; --text: #ededed; --muted: #edededa6; --faint: #ededed78; --line: #ededed13; --input: #ededed24; --soft: #ededed0d; --soft-hover: #ededed1a; --primary: #ededed; --primary-fg: #131313; --accent: #006efe; --info: #5ba2fe; --ok: #40c977; --ok-wash: #40c97726; --warn: #ff8549; --warn-wash: #ff854926; --bad: #ff6764; --bad-wash: #ff676422; --chart: #3a83f7; --track: #ededed1a; --scrim: #00000099; --shadow: none; --shadow-xl: 0 8px 16px -4px #00000080; } } * { box-sizing: border-box; } html, body { margin: 0; } body { background: var(--bg); color: var(--text); font: 400 15px/22px Geist, -apple-system, system-ui, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; } body.locked { overflow: hidden; } a { color: var(--info); text-decoration: none; } a:hover { text-decoration: underline; } h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.01em; } h1 { font-size: 24px; line-height: 32px; } h2 { font-size: 16px; line-height: 24px; } .muted { color: var(--muted); } .faint { color: var(--faint); } .s { font-size: 13px; line-height: 18px; } .ok { color: var(--ok); } .warn { color: var(--warn); } .strong { font-weight: 500; } .center { text-align: center; } .mono { font-family: var(--mono); font-size: 12px; } .stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .stack.gap { gap: 10px; } .grow { flex: 1; } .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .row.gap { gap: 8px; flex-wrap: nowrap; } .row-baseline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .offscreen { position: fixed; left: -9999px; opacity: 0; } /* header */ .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); z-index: 5; } .brand { display: flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; } .brand .faint { font-weight: 400; } .logo { display: inline-flex; width: 22px; height: 22px; color: var(--text); } .logo svg { width: 100%; height: 100%; } .wrap { width: 100%; max-width: 1048px; margin: 0 auto; padding: 20px 16px max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; } /* greeting */ .hello { display: flex; align-items: center; gap: 12px; } .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft-hover); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; position: relative; flex: 0 0 auto; } .avatar.online::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--bg); } .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--soft); color: var(--muted); } .pill.ok { background: var(--ok-wash); color: var(--ok); } .pill.warn { background: var(--warn-wash); color: var(--warn); } .pill.bad { background: var(--bad-wash); color: var(--bad); } .notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-wash); font-size: 14px; } .notice.bad { background: var(--bad-wash); } .notice .ic { color: var(--warn); } .notice.bad .ic { color: var(--bad); } /* layout: phone = access then devices; desktop = devices | access */ .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; grid-template-areas: 'access' 'devices'; } .access { grid-area: access; } .devices { grid-area: devices; display: flex; flex-direction: column; gap: 12px; min-width: 0; } .desktop-only { display: none !important; } @media (min-width: 960px) { .top { padding-left: max(16px, calc((100vw - 1048px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 1048px) / 2 + 16px)); } .layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-areas: 'devices access'; align-items: start; gap: 16px; } .desktop-only { display: inline-flex !important; } .wrap { padding-top: 28px; } } /* cards */ .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .access { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .access-card { display: flex; flex-direction: column; gap: 12px; } .reach { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--soft); } .reach-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); } .tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; } .tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tile-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--faint); } .tile-value { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; } .tile-value.sm { font-size: 16px; } .tile-value .faint { font-size: 14px; font-weight: 400; } .meter { position: relative; height: 6px; border-radius: 999px; background: var(--track); cursor: default; } .meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); } .meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); } .slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; } .slots i { display: block; height: 4px; border-radius: 999px; background: var(--track); } .slots i.used { background: var(--text); } .slots i.over { background: color-mix(in srgb, var(--warn) 80%, transparent); } /* devices */ .dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; } @media (min-width: 640px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } } /* No devices yet: the add card takes the whole row instead of leaving a hole. */ .dgrid > .slot.add:only-child { grid-column: 1 / -1; } .dcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); } .dcard.online { border-color: color-mix(in srgb, var(--ok) 35%, transparent); } .dcard.off { opacity: 0.7; } .dhead { display: flex; align-items: center; gap: 12px; } .dic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--muted); } .dic .ic-svg { width: 20px; height: 20px; } .dcard.online .dic { background: var(--ok-wash); color: var(--ok); } /* The device this page was opened from: blue tile, blue status, blue border. */ .dcard.here { border: 1.5px dotted color-mix(in srgb, var(--accent) 80%, transparent); } .dcard.here .dic { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--info); } .dstat.here { color: var(--info); } .dot.here { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); } .dname { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dstat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } .dstat.ok { color: var(--ok); } .dstat.warn { color: var(--warn); } .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: inline-block; flex: 0 0 auto; } .dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-wash); } .dot.warn { background: var(--warn); } .dot.pulse { animation: pulse 1.6s ease-in-out infinite; } @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--warn-wash); } 50% { box-shadow: 0 0 0 6px transparent; } } .duse { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; } .spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; width: 128px; } .spark i { flex: 1; display: block; border-radius: 2px 2px 0 0; background: var(--chart); opacity: 0.85; cursor: default; } .spark i.zero { opacity: 0.22; } .spark i:hover { opacity: 1; filter: brightness(1.2); } /* Names at home (access card) */ .names { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); } .names-head { display: flex; gap: 10px; align-items: flex-start; } .names-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); } .names-ic .ic-svg { width: 15px; height: 15px; } .names-list { display: flex; flex-wrap: wrap; gap: 6px; } .name-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 9px 0 10px; border-radius: 999px; background: var(--soft); } .name-chip:hover { background: var(--soft-hover); } .name-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .name-chip .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .name-chip .ic-svg { width: 13px; height: 13px; color: var(--faint); } .slot.add { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 72px; border: 1px dashed var(--input); border-radius: var(--radius); color: var(--text); text-align: left; transition: background 0.15s, border-color 0.15s; } .slot.add:hover { background: var(--soft); border-color: color-mix(in srgb, var(--text) 30%, transparent); } .slot-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--muted); } .slot.add:hover .slot-ic { background: var(--primary); color: var(--primary-fg); } .slot.add:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } @media (min-width: 960px) { .slot.add { flex-direction: column; justify-content: center; gap: 10px; min-height: 140px; text-align: center; color: var(--muted); } .slot.add .stack { align-items: center; } .slot.add .strong { color: var(--text); } .slot.add .slot-ic { border-radius: 999px; width: 36px; height: 36px; } } /* buttons */ .ic { display: inline-flex; line-height: 0; } .ic-svg { width: 16px; height: 16px; } .btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--soft); color: var(--text); -webkit-tap-highlight-color: transparent; white-space: nowrap; } .btn:hover { background: var(--soft-hover); } .btn.primary { background: var(--primary); color: var(--primary-fg); } .btn.primary:hover { opacity: 0.9; } .btn.danger-solid { background: var(--bad); color: #fff; } .btn.small { height: 32px; padding: 0 12px; font-size: 13px; } .btn.big { height: 48px; font-size: 15px; } .btn.block { display: flex; width: 100%; } .btn[disabled] { opacity: 0.45; cursor: not-allowed; } .btn:focus-visible, .kind:focus-visible, .icon-btn:focus-visible, .slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .icon-btn { all: unset; cursor: pointer; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); flex: 0 0 auto; } .icon-btn:hover { background: var(--soft); color: var(--text); } .icon-btn.soft { background: var(--soft); } @media (pointer: coarse) { .icon-btn { width: 40px; height: 40px; } } /* inputs */ input[type='text'] { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; height: 44px; } input[type='text']:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; border-color: transparent; } .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 2px 6px; } .err { color: var(--bad); min-height: 1.2em; margin: 8px 2px; font-size: 14px; } .kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; } .kind { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 68px; min-width: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: center; } .kind .ic-svg { width: 20px; height: 20px; } .kind:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); } .kind.on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); } .kind.on .ic { color: var(--accent); } /* sign-in */ .signin { text-align: center; max-width: 420px; margin: 8vh auto 0; width: 100%; padding: 28px 20px; display: flex; flex-direction: column; gap: 10px; } .hero-ic { width: 52px; height: 52px; margin: 0 auto 6px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--primary-fg); } .hero-ic .ic-svg { width: 24px; height: 24px; } .signin input { text-align: center; margin-top: 8px; } /* dropdown menu */ .menu { position: absolute; z-index: 30; width: 230px; padding: 4px; border-radius: 14px; background: var(--elevated); border: 1px solid var(--line); box-shadow: var(--shadow-xl); } .menu-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; } .menu-item:hover, .menu-item:focus-visible { background: var(--soft-hover); } .menu-item .ic { color: var(--muted); } .menu-item.danger { color: var(--bad); } .menu-item.danger .ic { color: var(--bad); } .menu-sep { height: 1px; background: var(--line); margin: 4px 8px; } @media (pointer: coarse) { .menu-item { height: 44px; } } /* sheet: bottom sheet on phones, centred dialog on desktop */ .sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: transparent; transition: background 0.2s; } .sheet.open { background: var(--scrim); } .sheet-panel { width: 100%; max-width: 520px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: var(--elevated); border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; padding: 6px 16px max(20px, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); } .sheet.open .sheet-panel { transform: none; } .grab { width: 36px; height: 4px; border-radius: 999px; background: var(--input); margin: 4px auto 8px; } .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 4px 0 12px; } .sheet-head h2 { font-size: 20px; line-height: 28px; font-weight: 600; } .sheet-body { display: flex; flex-direction: column; gap: 14px; } @media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 16px; border-bottom: 1px solid var(--line); padding: 20px; max-width: 480px; transform: scale(0.97); opacity: 0; transition: transform 0.18s ease, opacity 0.18s ease; } .sheet.open .sheet-panel { transform: none; opacity: 1; } .grab { display: none; } } .tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 999px; } .tabs button { all: unset; cursor: pointer; flex: 1 1 auto; white-space: nowrap; text-align: center; padding: 7px 10px; border-radius: 999px; font-weight: 500; font-size: 13px; color: var(--muted); } .tabs button.on { background: var(--soft-hover); color: var(--text); } .pane { display: flex; flex-direction: column; gap: 10px; } .pane.center { align-items: center; text-align: center; } .qr { width: min(240px, 70vw); aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); } .qr svg { display: block; width: 100%; height: 100%; } .steps { margin: 4px 0 0; padding: 14px 16px 14px 34px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; font-size: 14px; } .keybox { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border: 1px solid var(--input); border-radius: 10px; } .keybox .mono { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); } .filecard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--soft); min-width: 0; } .filecard > .stack { flex: 1; min-width: 0; } .filecard-ic { width: 40px; height: 46px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; font: 10px var(--mono); color: var(--muted); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } /* Phones: the config file name wraps instead of being cut */ @media (max-width: 480px) { .filecard .ellipsis { white-space: normal; overflow-wrap: anywhere; } } .confbox { border: 1px solid var(--line); border-radius: 12px; } .confbox > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; color: var(--text); } .confbox > summary::-webkit-details-marker { display: none; } .confbox > summary > .ic:first-child { transition: transform 0.15s; color: var(--muted); } .confbox[open] > summary > .ic:first-child { transform: rotate(90deg); } .confbox .grow { flex: 1; } .confbox > .conf { margin: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: none; } .conf-sec { color: var(--accent, var(--info)); } .conf-k { color: var(--faint); } .conf-mask { padding: 0 6px; border-radius: 4px; background: var(--soft); color: var(--muted); } .conf { white-space: pre-wrap; word-break: break-all; font: 12px/18px var(--mono); background: var(--soft); border-radius: 10px; padding: 12px; max-height: 16rem; overflow: auto; } details > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; } .waiting { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; } /* tooltip & toast */ .tip { position: fixed; z-index: 50; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; font-size: 12px; line-height: 17px; white-space: nowrap; background: var(--elevated); border: 1px solid var(--line); box-shadow: var(--shadow-xl); pointer-events: none; } .tip-title { font-weight: 500; } .toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--primary); color: var(--primary-fg); padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: all 0.25s; max-width: 90vw; } .toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { background: var(--bad); color: #fff; } @media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }