chahinebrini 4b4b9fc63b feat(magic-win): ReBreak Magic Windows-App (Tauri) + CI-Build
Tauri 2 DoH-Schutz für Windows: PowerShell-DoH-Takeover, Tamper-Service
(SYSTEM, windows-service), Browser-Policies (Chromium built-in-DNS + eigenes
DoH aus → OS-Resolver), 24h-Cooldown via bestehende magic/*-Endpoints.
GitHub-Actions baut den x64-NSIS-Installer auf windows-latest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 13:39:52 +02:00

309 lines
4.9 KiB
CSS

/* ReBreak Magic — Design-Tokens analog rebreak-magic-mac + rebreak-native */
:root {
--accent: #2e7fd4; /* AccentColor der Mac-App (0.180/0.498/0.831) */
--accent-soft: rgba(46, 127, 212, 0.08);
--navy: #1f3a5c; /* Wordmark-Navy aus dem App-Icon */
--bg: #f5f5f7; /* windowBackgroundColor */
--card: #ffffff; /* controlBackgroundColor */
--text: #1c1c1e;
--text-secondary: #6e6e73;
--text-tertiary: #aeaeb2;
--green: #2e9e5b;
--red: #d4452e;
--orange: #d4882e;
--border: rgba(0, 0, 0, 0.08);
--radius: 12px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
body {
font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
background: var(--bg);
color: var(--text);
font-size: 14px;
-webkit-font-smoothing: antialiased;
user-select: none;
cursor: default;
}
.app {
height: 100%;
display: flex;
flex-direction: column;
}
/* ---------- Header (Hub) ---------- */
.header {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 20px;
background: var(--card);
border-bottom: 1px solid var(--border);
}
.header img {
width: 28px;
height: 28px;
}
.header .wordmark {
font-size: 17px;
font-weight: 800;
color: var(--navy);
}
.header .spacer {
flex: 1;
}
.plan-badge {
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.4px;
color: var(--accent);
background: var(--accent-soft);
border-radius: 6px;
padding: 3px 8px;
}
.nickname {
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
}
/* ---------- Layout ---------- */
.content {
flex: 1;
overflow-y: auto;
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
align-items: stretch;
}
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
}
.card h2 {
font-size: 15px;
font-weight: 700;
margin-bottom: 4px;
}
.card .sub {
font-size: 13px;
color: var(--text-secondary);
line-height: 1.45;
}
/* ---------- Status ---------- */
.status-row {
display: flex;
align-items: center;
gap: 14px;
}
.status-dot {
width: 12px;
height: 12px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.on {
background: var(--green);
box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.15);
}
.status-dot.off {
background: var(--text-tertiary);
}
.status-dot.cooldown {
background: var(--orange);
box-shadow: 0 0 0 4px rgba(212, 136, 46, 0.15);
}
/* ---------- Buttons ---------- */
button {
font-family: inherit;
font-size: 14px;
font-weight: 700;
border: none;
border-radius: 9px;
padding: 10px 18px;
cursor: pointer;
transition: opacity 0.12s ease;
}
button:hover {
opacity: 0.88;
}
button:disabled {
opacity: 0.45;
cursor: default;
}
.btn-primary {
background: var(--accent);
color: #fff;
}
.btn-secondary {
background: var(--accent-soft);
color: var(--accent);
}
.btn-danger-quiet {
background: transparent;
color: var(--red);
font-weight: 600;
}
.btn-link {
background: transparent;
color: var(--text-secondary);
font-weight: 600;
font-size: 13px;
padding: 6px 10px;
}
/* ---------- Login ---------- */
.login {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 14px;
padding: 32px;
text-align: center;
}
.login img {
width: 88px;
height: 88px;
margin-bottom: 4px;
}
.login h1 {
font-size: 26px;
font-weight: 800;
color: var(--navy);
}
.login .lead {
font-size: 14px;
color: var(--text-secondary);
max-width: 400px;
line-height: 1.5;
}
.code-input {
font-family: inherit;
font-size: 28px;
font-weight: 800;
letter-spacing: 14px;
text-align: center;
text-indent: 14px; /* gleicht letter-spacing-Versatz aus */
width: 260px;
padding: 12px 0;
border: 1.5px solid var(--border);
border-radius: var(--radius);
background: var(--card);
color: var(--text);
outline: none;
}
.code-input:focus {
border-color: var(--accent);
}
.hint {
font-size: 12px;
color: var(--text-tertiary);
max-width: 380px;
line-height: 1.5;
}
.error {
font-size: 13px;
font-weight: 600;
color: var(--red);
max-width: 400px;
}
/* ---------- Countdown ---------- */
.countdown {
font-size: 34px;
font-weight: 800;
font-variant-numeric: tabular-nums;
color: var(--orange);
letter-spacing: 1px;
}
.row {
display: flex;
align-items: center;
gap: 10px;
}
.row.end {
justify-content: flex-end;
}
.grow {
flex: 1;
}
/* ---------- Footer ---------- */
.footer {
padding: 10px 20px;
font-size: 11px;
color: var(--text-tertiary);
display: flex;
justify-content: space-between;
}
.spin {
width: 22px;
height: 22px;
border: 2.5px solid var(--accent-soft);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.center-fill {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
}