.app { font-size: 15px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 36px 0 80px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 22px; }
.side { display: grid; gap: 16px; }
.side h3 { font: 600 16px var(--sans); margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--mute); font-size: 14px; }
.kv b { color: var(--text); font-weight: 500; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; margin-bottom: 26px; }
.tabs button { flex: 1; height: 40px; border-radius: 0; color: var(--mute); font-weight: 500; }
.tabs button.on { background: var(--panel2); color: var(--text); }
.main h2 { font: 600 26px/1.15 var(--sans); letter-spacing: -.03em; margin-bottom: 8px; }
.main p.sub { color: var(--mute); margin-bottom: 22px; }
.field { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; background: none; border: 0; outline: 0; color: var(--text); font: 500 22px var(--mono); }
.field textarea { font: 400 16px var(--mono); resize: vertical; min-height: 84px; }
.field select { font: 500 16px var(--sans); appearance: none; cursor: pointer; }
.field select option { background: var(--panel); }
.field input.small { font-size: 16px; }
.chips { display: flex; gap: 6px; margin: -2px 0 14px; flex-wrap: wrap; }
.chips button { height: 32px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line); color: var(--mute); font: 500 13px var(--mono); }
.chips button:hover { color: var(--text); border-color: #34343f; }
.lines { border-top: 1px solid var(--line); margin: 6px 0 18px; }
.lines .kv { border-bottom: 1px solid var(--line); padding: 10px 0; }
.go { width: 100%; height: 52px; font-size: 16px; }
.note { color: var(--mute); font-size: 13px; margin-top: 14px; }
.warn { border: 1px solid var(--line2); background: var(--panel2); border-radius: 0; padding: 14px 16px; color: var(--text); font-size: 14px; margin-bottom: 16px; }
.words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.words div { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; font: 500 15px var(--mono); }
.words div i { font-style: normal; color: var(--dim); margin-right: 8px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--mute); margin: 8px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.row2 { display: flex; gap: 10px; }
.row2 > * { flex: 1; }
.notes .item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: center; }
.notes .item:first-child { border-top: 0; }
.notes .item b { font: 500 18px var(--mono); }
.notes .item small { color: var(--mute); grid-column: 1; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 0; font-size: 12px; font-weight: 500; }
.tag.ready { background: var(--acc); color: var(--acc-ink); } .tag.wait { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); } .tag.done { background: var(--panel2); color: var(--dim); }
.empty { color: var(--mute); text-align: center; padding: 34px 0; width: 100%; }
.feed .e { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--mute); }
.feed .e:first-child { border-top: 0; }
.feed .e b { color: var(--text); font: 500 14px var(--mono); }
.keybox p { color: var(--mute); font-size: 14px; margin-bottom: 12px; }
.keybox .row2 .btn { height: 36px; font-size: 14px; }
.progress { margin-top: 16px; color: var(--mute); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 0; padding: 12px 18px; font-size: 14px; transition: .2s; z-index: 50; max-width: min(560px, 92vw); pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.toast.bad { border-color: #5a2a2a; color: #ffc9c9; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .words { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
