/* Brand + header */
.screen-header { padding: 14px var(--screen) 0; }
.brand-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; }
.brand__mark { border-radius: 24%; }
.brand-row__right { display: flex; align-items: center; gap: 14px; }
.screen-header h1 { font-size: 34px; line-height: 1.18; font-weight: 700; letter-spacing: .4px; margin-top: 16px; }
.subtitle { color: var(--text-2); font-size: 16px; margin-top: 2px; }
.lang-btn { border: 1px solid var(--divider); border-radius: 10px; padding: 5px 11px; font-size: 14px; color: var(--text-2); }
.icon-btn { position: relative; padding: 2px; line-height: 0; }
.icon-btn.is-on, .icon-btn.accent { color: var(--accent); }
.count { position: absolute; top: -4px; inset-inline-end: -8px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }

/* Buttons, chips, tags */
.primary-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; transition: transform .2s var(--spring); }
.primary-btn:active { transform: scale(.97); }
.out { line-height: 0; transform: rotate(-45deg); } .out--rtl { transform: rotate(225deg); }
.text-btn { padding: 8px 0; font-size: 17px; font-weight: 600; }
.chip { border: 1px solid var(--divider); border-radius: 999px; padding: 8px 16px; font-size: 16px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--divider); border-radius: 8px; padding: 2px 8px; font-size: 13px; color: var(--text-2); }
.badge { display: inline-block; align-self: flex-start; background: var(--accent); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 15px; font-weight: 700; }
.hl { color: var(--text-2); font-size: 16px; line-height: 1.45; }
.hl__bold, .hl__mark { font-weight: 700; color: var(--text); }
.hl__mark { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 3px; }
.hl--body { font-size: 17px; line-height: 1.55; white-space: pre-line; margin-top: 8px; }
.info { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 16px; color: var(--text); }
.info .ion { color: var(--text-2); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface); border: .5px solid var(--divider); flex: none; }
.avatar--text { display: inline-flex; align-items: center; justify-content: center; background: var(--tint); border: 0; font-weight: 700; color: var(--text-2); }
.empty { text-align: center; padding: 72px var(--screen); color: var(--text-2); }
.empty h2 { color: var(--text); font-size: 28px; font-weight: 600; }
.empty p { margin-top: 8px; }
.empty__actions { margin-top: 24px; display: flex; flex-direction: column; align-items: center; }

/* Artwork */
.art { position: absolute; inset: 0; container-type: size; background: var(--tint); overflow: hidden; pointer-events: none; }
.art span { position: absolute; }
.art__glyph { inset-inline-end: 18px; bottom: 10px; color: color-mix(in srgb, var(--ink) 6%, transparent); line-height: 0; }

/* Rows (Home, Saved, Past) */
.rows { margin: 0 var(--screen) 16px; background: var(--surface); border-radius: 18px; overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: background .15s; }
.row + .row::before { content: ""; position: absolute; top: 0; inset-inline: calc(14px + 46px + 12px) 14px; height: .5px; background: var(--divider); }
.row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.row__link { position: absolute; inset: 0; }
.tile { position: relative; width: 46px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--tint); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.tile b { position: relative; font-size: 18px; line-height: 21px; } .tile small { position: relative; font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--text-2); }
.tile--past b { color: var(--text-2); }
.tile .ion { position: relative; color: var(--text-2); }
.row__body { flex: 1; min-width: 0; }
.row__title { font-size: 17px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row--past .row__title { color: var(--text-2); }
.row__meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 13px; color: var(--text-2); }
.row__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__save { position: relative; z-index: 1; padding: 6px; line-height: 0; color: var(--accent); }
.group { margin: 24px var(--screen) 8px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.pad { padding: 0 var(--screen); }
.seg { display: flex; margin: 16px var(--screen) 0; padding: 3px; background: var(--surface); border: 1px solid var(--divider); border-radius: 12px; }
.seg a { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--text-2); }
.seg a[aria-selected="true"] { background: var(--text); color: var(--bg); }

/* Sections, CV chart */
.section { margin-top: 24px; }
.section__title { padding: 0 var(--screen); margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.cv { margin: 0 var(--screen); padding: 16px; background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; }
.cv__row { display: flex; align-items: center; gap: 10px; margin: 5px 0; font-size: 16px; }
.cv__row > span { width: 40%; min-width: 120px; max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv__row.is-empty > span { color: var(--text-2); }
.cv__track { flex: 1; height: 6px; border-radius: 3px; background: var(--divider); } .cv__track i { display: block; height: 100%; border-radius: 3px; background: var(--text); }
.cv__row b { width: 18px; text-align: end; font-weight: 400; color: var(--text-2); }
.cv .muted { margin-top: 8px; }
