/* Interface fragments ([data-ui]): the app's own look, tokens from docs/DESIGN.md */
[data-ui] {
  --a: #171615; --p: #242321; --ts: #ECEAE6; --t: #C9C5BF; --t2: #A39F98; --tm: #8F8A83; --b: #ffffff17; --bs: #ffffff33;
  font: 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: 0;
  color: var(--t); text-align: left; -webkit-font-smoothing: antialiased;
}
[data-ui] { font-variant-numeric: tabular-nums; }
.diff code { font: 12.5px/1 "SF Mono", ui-monospace, Menlo, monospace; color: var(--t); white-space: pre; }

/* Main window */
.win { width: 1280px; height: 820px; background: var(--a); display: flex; flex-direction: column; }
.tb { height: 44px; background: var(--p); display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--b); flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.lights { display: flex; gap: 8px; margin-right: 14px; }
.lights b { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights b + b { background: #febc2e; } .lights b + b + b { background: #28c840; }
.tab { padding: 6px 10px; border-radius: 6px; color: var(--t2); display: flex; gap: 6px; align-items: center; }
.tab.on { background: #ffffff14; color: var(--ts); font-weight: 600; }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: #E3C651; }
.up { color: #6CC070; font-style: normal; font-size: 12px; }
.body { flex: 1; display: flex; min-height: 0; }
.lp { width: 250px; background: var(--p); padding: 10px 0; border-right: 1px solid var(--b); flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.sec { color: var(--ts); font-weight: 600; padding: 12px 12px 8px; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--b); } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.sec:first-child { border: 0; }
.badge { background: #ffffff12; color: var(--ts); font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.br { padding: 6px 12px 6px 20px; display: flex; gap: 8px; align-items: center; border-radius: 6px; margin: 0 6px; white-space: nowrap; }
.br em { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.br.cur { background: #ffffff12; color: var(--ts); font-weight: 600; }
.br.sub { color: var(--t2); }
.ctr { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ab { height: 46px; display: flex; gap: 10px; align-items: center; justify-content: center; border-bottom: 1px solid var(--b); font-weight: 500; color: var(--ts); flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.grp { display: flex; gap: 2px; background: #ffffff08; border-radius: 8px; padding: 3px; }
.grp span { padding: 6px 9px; }
[data-ui] .cl { color: #D97757; /* taste-skill-ignore: Claude accent, DESIGN.md §2.2 */ display: inline-flex; gap: 6px; align-items: center; }
[data-ui] .cl img { width: 13px; height: 13px; }
.hd { height: 28px; display: flex; align-items: center; color: var(--tm); font-size: 11.5px; padding-left: 4px; border-bottom: 1px solid var(--b); flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.graph { display: flex; padding-left: 4px; }
.g-svg { flex: none; }
.rows { flex: 1; min-width: 0; }
.row { height: 26px; display: flex; align-items: center; white-space: nowrap; }
.row.sel { background: #ffffff0f; color: var(--ts); }
.row.wip { color: var(--t2); font-style: italic; }
.c-au { width: 56px; flex: none; }
.c-msg { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; padding-right: 16px; }
.c-msg > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ref { flex: none; }
.c-date { width: 128px; flex: none; color: var(--tm); font-size: 11.5px; }
.c-sha { width: 70px; flex: none; color: var(--tm); font-size: 11.5px; }
.au { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #2C3A42; color: #A9C9DA; font-size: 8.5px; font-weight: 600; }
.au.b { background: #45352B; color: #E3B997; }
.ref { height: 18px; display: inline-flex; align-items: center; padding: 0 6px; border: 1.5px solid; border-radius: 4px; font-size: 11.5px; color: var(--ts); }
.ref i { color: var(--tm); font-style: normal; margin-left: 4px; }
.ref.tag { border-color: var(--bs); color: var(--t2); }
.rp { width: 400px; background: var(--p); border-left: 1px solid var(--b); padding: 12px; display: flex; flex-direction: column; gap: 10px; flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.box { border: 1px solid var(--bs); background: #ffffff0a; border-radius: 8px; padding: 4px 0; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.bh { display: flex; gap: 8px; align-items: center; color: var(--ts); font-weight: 600; padding: 8px 12px; }
.sbtn { margin-left: auto; font-weight: 500; font-size: 12px; border: 1px solid var(--bs); padding: 4px 8px; border-radius: 6px; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.f { display: flex; gap: 10px; padding: 6px 12px; align-items: center; }
.f span { flex: 1; } .f i { color: var(--tm); font-style: normal; }
.f b.m { color: #D2A06C; } .f b.a { color: #8CBC8A; }
.n s { text-decoration: none; font-size: 11.5px; } .n .a { color: #8CBC8A; } .n .d { color: #D48A8A; }
.comp { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sumrow { display: flex; justify-content: space-between; color: var(--t2); }
.inp { background: #ffffff0a; border-radius: 7px; padding: 9px 10px; color: var(--ts); display: flex; justify-content: space-between; gap: 12px; line-height: 1.4; }
.inp.tall { min-height: 64px; color: var(--t); }
.cnt { color: var(--tm); font-size: 11.5px; }
.scan { color: var(--t2); font-size: 12px; }
.prim { background: var(--ts); color: var(--a); font-weight: 600; border-radius: 7px; padding: 10px; text-align: center; }
.sb { height: 24px; background: var(--p); border-top: 1px solid var(--b); display: flex; justify-content: space-between; align-items: center; padding: 0 12px; font-size: 11px; color: var(--t2); flex: none; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.sb i { color: var(--tm); font-style: normal; }

/* Diff with line staging and a Claude review comment */
.diff { background: var(--a); width: 100%; min-width: 760px; font-size: 13px; }
.diff .dh { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--b); color: var(--ts); } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.diff .dh .seg { display: flex; gap: 2px; background: #ffffff08; border-radius: 8px; padding: 3px; margin-left: auto; font-weight: 500; }
.diff .dh .seg span { padding: 5px 9px; border-radius: 6px; color: var(--t2); }
.diff .dh .seg span.on { background: #ffffff14; color: var(--ts); }
.diff .hh { display: flex; gap: 10px; align-items: center; padding: 12px 16px 8px; color: var(--tm); font-size: 12px; }
.diff .hh .stage { margin-left: auto; background: var(--ts); color: var(--a); font-weight: 600; border-radius: 7px; padding: 6px 10px; font-family: inherit; font-size: 12.5px; }
.diff .l { display: grid; grid-template-columns: 28px 44px 16px 1fr; align-items: center; height: 22px; white-space: pre; }
.diff .ln { color: var(--tm); font-size: 11.5px; text-align: right; padding-right: 10px; }
.diff .ck { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--bs); justify-self: center; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.diff .l.add { background: #2EA04347; } .diff .l.del { background: #E5534B47; }
.diff .l.sel { background: #2EA04380; } .diff .l.sel code { color: var(--ts); }
.diff .l.sel .ck { background: var(--ts); border-color: var(--ts); }
.diff .sg { color: var(--tm); font-size: 12px; text-align: center; }
.diff .sg img { width: 11px; height: 11px; vertical-align: middle; }
.diff .kw { color: #B49AD6; } .diff .fn { color: #7FB0C8; } .diff .st { color: #D2A06C; } .diff .nu { color: #D48A8A; } .diff .cm { color: #8F8A83; font-style: italic; }
.review { margin: 6px 16px 10px 88px; background: #D977571A; /* taste-skill-ignore: Claude accent, DESIGN.md §2.2 */ border-radius: 8px; padding: 12px 14px; color: var(--ts); line-height: 1.5; font-size: 13px; }
.review .who { display: flex; gap: 6px; align-items: center; color: #D97757; /* taste-skill-ignore: Claude accent, DESIGN.md §2.2 */ font-weight: 500; margin-bottom: 4px; }
.review .who img { width: 13px; height: 13px; }
.review .acts { display: flex; gap: 16px; margin-top: 8px; color: #D97757; /* taste-skill-ignore: Claude accent, DESIGN.md §2.2 */ font-weight: 500; }
.review .acts span + span { color: var(--t2); }

/* Claude answers */
.ans { background: var(--p); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.ans .head { display: flex; justify-content: space-between; color: var(--t2); }
.ans p { color: var(--t); font-size: 13.5px; }
.ans ul { list-style: none; display: grid; gap: 8px; }
.ans li { display: flex; gap: 10px; color: var(--t); font-size: 13.5px; }
.ans li b { flex: none; font-weight: 600; color: var(--ts); }
.ans .file { display: flex; gap: 10px; color: var(--ts); }
.ans .file i { color: var(--tm); font-style: normal; }
.ans .row2 { display: flex; gap: 8px; }
.ans .row2 span { flex: 1; text-align: center; padding: 8px; border-radius: 7px; border: 1px solid var(--bs); color: var(--ts); font-weight: 500; } /* taste-skill-ignore: the app's own dividers inside [data-ui] */
.ans .row2 span.go { background: var(--ts); color: var(--a); border-color: var(--ts); font-weight: 600; }

/* Home tab */
.hometab { background: var(--a); padding: 28px; width: 100%; min-width: 720px; }
.hm-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.hm-top img { width: 96px; height: 96px; }
.hm-top b { font-size: 26px; font-weight: 700; color: var(--ts); }
.tiles { display: flex; gap: 8px; margin-left: auto; }
.tiles span { background: #ffffff0a; border-radius: 8px; padding: 12px 16px; color: var(--ts); font-weight: 500; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc { background: var(--p); border-radius: 10px; padding: 8px 0; }
.hct { display: flex; justify-content: space-between; color: var(--ts); font-weight: 600; padding: 8px 14px 6px; }
.pull { color: #5AA9E6; font-weight: 500; }
.hr { display: flex; gap: 8px; align-items: center; padding: 6px 14px; white-space: nowrap; }
.hr .star { fill: #E3C651; flex: none; } .hr .star.off { fill: none; stroke: var(--tm); stroke-width: 2; }
.hr .nm { color: var(--t); }
.hr em { font-style: normal; font-size: 12px; }
.hr .dot { width: 7px; height: 7px; border-radius: 50%; background: #E3C651; }
.hr .up { color: #6CC070; } .hr .dn { color: #5AA9E6; }
.hr i { margin-left: auto; color: var(--tm); font-style: normal; font-size: 12px; }
