:root {
--bg: #0b1120;
--surface: #111827;
--surface-2: #1e293b;
--border: #334155;
--border-soft: #293548;
--text: #e2e8f0;
--muted: #94a3b8;
--accent: #6366f1;
--accent-strong: #4f46e5;
--accent-soft: rgba(99, 102, 241, 0.14);
--accent-text: #a5b4fc;
color-scheme: dark;
}
* { box-sizing: border-box; }
body {
width: 360px;
max-height: 560px;
display: flex;
flex-direction: column;
margin: 0;
padding: 12px;
font: 13px/1.45 system-ui, sans-serif;
color: var(--text);
background: var(--bg);
}
.head h1 {
margin: 0;
font-size: 14px;
font-weight: 700;
}
.page-url {
color: var(--accent-text);
font-size: 11px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.toggle {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin: 10px 0;
padding: 7px 10px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--surface-2);
color: #c7d2fe;
font-weight: 600;
cursor: pointer;
}
.toggle.on {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.toggle:disabled { opacity: 0.5; cursor: default; }
.toggle kbd {
font: 10px/1 ui-monospace, monospace;
padding: 3px 5px;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--bg);
color: var(--accent-text);
}
.toggle.on kbd {
border-color: rgba(255, 255, 255, 0.5);
background: transparent;
color: #fff;
}
.list {
flex: 1;
overflow-y: auto;
margin: 0 0 10px;
}
.item {
border: 1px solid var(--border-soft);
border-radius: 9px;
padding: 8px 10px;
margin-bottom: 8px;
background: var(--surface);
}
.item textarea {
width: 100%;
min-height: 40px;
resize: vertical;
font: 13px/1.45 system-ui, sans-serif;
color: var(--text);
border: 1px solid var(--border);
border-radius: 7px;
padding: 6px 8px;
background: var(--bg);
}
.item textarea:focus {
outline: 2px solid var(--accent);
border-color: var(--accent);
}
.item .targets {
margin: 6px 0 4px;
padding: 0;
list-style: none;
}
.item .targets li {
font: 11px/1.4 ui-monospace, monospace;
color: var(--accent-text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.item .del {
float: right;
border: none;
background: none;
color: #f87171;
cursor: pointer;
font-size: 14px;
padding: 0 2px;
}
.item .del:hover { color: #fca5a5; }
.empty {
color: var(--muted);
padding: 12px 4px;
}
.foot {
display: flex;
gap: 8px;
}
.foot button {
flex: 1;
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border);
cursor: pointer;
font-weight: 600;
}
.primary {
background: var(--accent);
border-color: var(--accent);
color: #fff;
}
.primary:hover { background: var(--accent-strong); }
.primary:disabled { opacity: 0.45; cursor: default; }
.danger {
background: transparent;
color: #f87171;
}
.danger:hover { background: rgba(185, 28, 28, 0.15); }
.danger.confirming {
background: #b91c1c;
border-color: #b91c1c;
color: #fff;
}
.others {
margin-top: 8px;
font-size: 11px;
color: var(--muted);
}
.toast {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
background: var(--accent-strong);
color: #fff;
padding: 5px 12px;
border-radius: 20px;
font-size: 12px;
}