:root { --bg: #000; --card: #1a1a1a; --chip: #2a2a2a; --gray: #808080; --dim: #555; --link: #8ab4f8; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: #fff; }
body { font-family: -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 16px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: #fff; background: none; border: 0; outline: none; width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--gray); }
.small { font-size: 13px; }

#login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 16px; text-align: center; }
.primary { background: #fff; color: #000; border-radius: 20px; padding: 8px 22px; text-decoration: none; }

#main, #editor { max-width: 720px; margin: 0 auto; padding: 8px 16px 120px; }
header { display: flex; align-items: center; position: sticky; top: 0; background: var(--bg); z-index: 1; }
#tabs { flex: 1; display: flex; }
#tabs button { font-size: 18px; color: var(--dim); padding: 12px 12px; }
#tabs button.on { color: #fff; }
#account { font-size: 13px; padding: 10px 4px; }

#list { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--card); border-radius: 12px; padding: 8px 0; user-select: none; }
.card .top { display: flex; align-items: center; }
.tri { color: var(--gray); width: 40px; height: 36px; flex: none; }
.card .body { flex: 1; min-width: 0; }
.card .t { font-size: 17px; overflow-wrap: anywhere; }
.sub { font-size: 12px; color: var(--gray); }
.check { width: 48px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; }
.check span { width: 22px; height: 22px; border: 1.5px solid var(--gray); border-radius: 50%; }
.check:hover span { border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 12px 4px 40px; }
.chip { background: var(--chip); border-radius: 6px; padding: 5px 10px; font-size: 13px; text-decoration: none; color: #fff; }
a.chip { color: var(--link); }
.memo { white-space: pre-wrap; color: #ddd; font-size: 15px; line-height: 1.5; padding: 4px 16px 4px 40px; overflow-wrap: anywhere; }

.section { color: var(--gray); font-size: 14px; text-align: left; padding: 16px 4px 4px; }
.subrow { background: #111; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; user-select: none; }
.subrow .body { flex: 1; color: var(--gray); }
.subrow .sub { color: var(--dim); }
.subrow button { color: var(--gray); font-size: 14px; padding: 4px; }

#add { position: fixed; right: max(20px, calc(50vw - 340px)); bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--chip); font-size: 24px; }

.ebar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; position: sticky; top: 0; background: var(--bg); z-index: 1; }
.options { display: flex; flex-wrap: wrap; }
.options button { color: var(--dim); padding: 8px; font-size: 15px; }
.options button.on { color: #fff; }
.title { font-size: 22px; padding: 12px 0 0; }
.label { color: var(--gray); font-size: 13px; padding: 28px 0 6px; }
.tools { display: flex; gap: 6px; align-items: center; }
.tools button { background: var(--chip); border-radius: 6px; padding: 6px 14px; }
.hint { font-size: 12px; margin-left: 8px; }
textarea { resize: vertical; color: #ddd; line-height: 1.5; padding: 10px 0; min-height: 140px; }
.row { display: flex; align-items: center; gap: 8px; }
.row input { padding: 8px 0; }
.row button { padding: 8px; flex: none; white-space: nowrap; }
#etime { width: auto; color-scheme: dark; font-size: 18px; }
.item { display: flex; align-items: center; }
.item .name { flex: 1; padding: 8px 0; overflow-wrap: anywhere; }
.item a.name { color: var(--link); text-decoration: none; }
.item button { color: var(--gray); font-size: 18px; padding: 0 8px; }
.ebottom { display: flex; gap: 24px; padding: 32px 0 24px; }
.danger { color: #cc6666; }
