/* Hedefler, Hedef ve Ayarlar ekranları. Değerler styles.css değişkenlerinden. */

/* ---- Hedefler */
.gl-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.gl-seg__btn { height: 36px; min-height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13px; font-weight: 500; }
.gl-seg__btn.is-on { background: var(--text); color: var(--bg); font-weight: 600; }
.gl-item { width: 100%; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--text); min-width: 0; }
.card > .gl-item:first-child { border-top: 0; }
.gl-item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; }
.gl-item__title { min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.gl-item__pct { flex: none; font-size: 13px; color: var(--muted); }
.gl-item__meta { font-size: 13px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-bar { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--bg); }
.gl-bar__fill { display: block; width: 0; height: 6px; border-radius: 3px; background: var(--text); transition: width 0.15s ease; }
.gl-fold { width: 100%; min-height: var(--target); display: flex; justify-content: space-between; align-items: center; padding: 0; background: none; border: 0; color: var(--muted); }
.gl-fold .section__title { color: var(--muted); }
.gl-fold__right { display: inline-flex; align-items: center; gap: 12px; }

/* ---- Hedef */
.gl-detail { flex: none; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gl-name { display: flex; gap: 8px; align-items: center; }
.gl-name__input { flex: 1; min-width: 0; height: var(--btn-lg); font-size: 20px; font-weight: 700; }
.gl-name__save { width: auto; flex: none; height: var(--btn-lg); padding: 0 16px; }
.gl-progress { padding: 16px; }
.gl-progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gl-progress__pct { font-size: 28px; line-height: 32px; font-weight: 700; }
.gl-progress__note { font-size: 13px; color: var(--muted); text-align: right; }
.gl-manual { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.gl-manual__btn { height: var(--target); border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500; }
.gl-manual__btn.is-on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.gl-step { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 16px; border-top: 1px solid var(--line); }
.card > .gl-step:first-child { border-top: 0; }
.gl-step .todo { min-width: 0; }
.gl-step .todo__text { min-width: 0; overflow-wrap: anywhere; }
.gl-step__del { border: 0; background: none; color: var(--muted); }
.gl-add { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); align-items: center; }
.card > .gl-add:first-child { border-top: 0; }
.gl-add .input { flex: 1; min-width: 0; }
.gl-add__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.gl-pad { padding: 12px 16px; }
.gl-select { appearance: auto; text-overflow: ellipsis; }
.gl-del.is-armed { background: var(--danger); border-color: var(--danger); font-weight: 700; }

/* ---- Ayarlar */
.st-pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-sep { border-top: 1px solid var(--line); }
.card > .st-pad:first-child { border-top: 0; }
.st-h { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.st-form { display: flex; flex-direction: column; gap: 12px; }
.st-row { min-height: var(--row); padding: 10px 16px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); min-width: 0; }
.st-row > svg { color: var(--accent-text); }
.st-row__text { flex: 1; min-width: 0; }
.st-row__title { font-size: 15px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row__value { flex: 0 1 auto; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-status { margin: 0; font-size: 13px; line-height: 20px; color: var(--accent-text); overflow-wrap: anywhere; }
.st-inline { display: flex; gap: 8px; }
.st-inline .input { flex: 1; min-width: 0; }
.st-inline__btn { width: auto; flex: none; padding: 0 16px; }
.st-arm.is-armed { background: var(--danger); border-color: var(--danger); font-weight: 700; }
.st-alert { align-items: center; }
.st-alert strong { font-weight: 700; }
.st-keyshow { display: flex; flex-direction: column; gap: 12px; }
.st-pub { padding: 12px 14px; border-radius: 8px; background: var(--bg); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; word-break: break-all; }
.st-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--muted-on-surface); }
.st-note svg { color: var(--accent-text); margin-top: 1px; }
.st-note p { margin: 0; min-width: 0; }
