/* Saros v30 — «أهدافي» (design B, orbits). Monochrome, both themes through the shared tokens. */
.g30{container-type:inline-size;--g30-check-ink:#fafafa}
body[data-theme="dark"] .g30{--g30-check-ink:#202020}
.g30 *{min-width:0}
.g30-i{display:block;flex:none}
.g30-cols{display:grid;grid-template-columns:minmax(290px,390px) minmax(0,1fr);gap:18px;align-items:start}

/* ---------- right column: orbits + ranked list ---------- */
.g30-orb-card{padding:18px 18px 12px;border-radius:24px;background:var(--surface);border:1px solid var(--border)}
.g30-orb-wrap{display:grid;place-items:center;padding:4px 0}
.g30-orbit{display:block;width:100%;max-width:330px;height:auto;aspect-ratio:1;overflow:visible}
.g30-orb{cursor:pointer}
.g30-orb-t{fill:none;stroke:var(--surface-2);stroke-width:5}
.g30-orb-t.is-open{stroke:var(--border);stroke-dasharray:2 5;stroke-width:1.5}
.g30-orb-a{fill:none;stroke:color-mix(in srgb,var(--text) 45%,transparent);stroke-linecap:round;transition:stroke .2s}
.g30-orb-a.on{stroke:var(--text)}
.g30-orb-p{fill:color-mix(in srgb,var(--text) 60%,var(--surface))}
.g30-orb-p.on{fill:var(--text);stroke:var(--surface);stroke-width:3}
.g30-orb-n{font:600 10px var(--latin,inherit);fill:var(--muted);direction:ltr}
.g30-orb-n.on{fill:var(--text);font-weight:800}
.g30-orb-hit{fill:none;stroke:transparent;pointer-events:stroke}
.g30-orb:hover .g30-orb-a:not(.on){stroke:color-mix(in srgb,var(--text) 70%,transparent)}
.g30-core-a{fill:var(--text)}
.g30-core-b{fill:var(--surface)}
.g30-cap{margin:2px 0 12px;text-align:center;font-size:12px;color:var(--muted)}
.g30-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.g30-row{display:flex;align-items:center;gap:6px;padding:7px 6px;border-radius:13px;border:1px solid transparent;cursor:pointer;transition:background .15s}
.g30-row:hover{background:color-mix(in srgb,var(--surface-2) 60%,transparent)}
.g30-row.is-sel{background:var(--surface-2);border-color:var(--border)}
.g30-row .ui-drag-handle{flex:none;width:24px!important;min-width:24px!important;height:30px!important;min-height:30px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--muted);opacity:.65;display:grid;place-items:center;border-radius:8px}
.g30-row .ui-drag-handle:hover,.g30-row .ui-drag-handle:focus-visible{opacity:1;color:var(--text)}
.g30-row .ui-drag-handle .ui-icon{width:16px;height:16px}
.g30-rank{flex:none;min-width:14px;font:600 13px var(--latin,inherit);color:var(--muted);text-align:center;background:none!important;border:0!important;width:auto!important;height:auto!important;padding:0!important;box-shadow:none!important}
.g30-row.is-sel .g30-rank{color:var(--text)}
.g30-pick{flex:1;display:grid;gap:1px;padding:2px 4px;border:0;background:transparent;color:var(--text);font:inherit;text-align:start;cursor:pointer;border-radius:8px}
.g30-pick:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.g30-pick strong{display:block;font-size:13.5px;font-weight:600;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g30-pick small{font-size:11px;color:var(--muted);line-height:1.5}
.g30-bar{display:block;height:4px;border-radius:99px;background:color-mix(in srgb,var(--text) 10%,transparent);overflow:hidden;margin-top:6px}
.g30-bar>span{display:block;height:100%;border-radius:inherit;background:var(--text)}
.g30-bar.is-big{height:8px;margin:6px 0 0}
.g30-pct{flex:none;min-width:40px;text-align:left;font:700 13px var(--latin,inherit);color:var(--text)}
.g30-hint{display:flex;align-items:center;justify-content:center;gap:5px;margin:10px 0 2px;font-size:11px;color:var(--muted)}
.g30-row.ui-dragging{opacity:.4}

/* ---------- left column: the selected goal ---------- */
.g30-detail{padding:26px 30px;border-radius:24px;background:var(--surface);border:1px solid var(--border);scroll-margin-top:80px}
.g30-dtop{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.g30-dhead{flex:1}
.g30-eyebrow{display:block;font-size:11.5px;font-weight:700;color:var(--muted)}
.g30-dtop h2{margin:4px 0 6px;font-size:26px;line-height:1.35;overflow-wrap:anywhere}
.g30-dmeta{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.g30-dmeta span{display:inline-flex;align-items:center;gap:5px}
.g30-edit{flex:none}
.g30-why{margin:20px 0;padding:6px 18px;border-inline-start:3px solid var(--text)}
.g30-why span{display:block;font-size:11.5px;font-weight:700;color:var(--muted);margin-bottom:2px}
.g30-why p{margin:0;font-size:20px;font-weight:600;line-height:1.65;overflow-wrap:anywhere;white-space:pre-line}
.g30-why-empty{display:inline-flex;align-items:center;gap:6px;margin:18px 0;padding:8px 13px;border-radius:11px;border:1px dashed var(--border);background:transparent;color:var(--muted);font:inherit;font-size:12.5px;cursor:pointer}
.g30-why-empty:hover{color:var(--text);border-color:var(--muted)}
.g30-prog{display:flex;align-items:center;gap:20px;padding:16px 18px;border-radius:18px;background:var(--surface-2)}
.g30-prog>div{flex:1}
.g30-prog b{font-size:16px}
.g30-prog p{margin:4px 0 0;font-size:13px;color:var(--muted);line-height:1.75}
.g30-prog p strong{color:var(--text)}
.g30-ring{flex:none;display:block}
.g30-ring-t{fill:none;stroke:var(--surface)}
.g30-ring-a{fill:none;stroke:var(--text);stroke-linecap:round}
.g30-ring-n{font:700 28px var(--latin,inherit);fill:var(--text);direction:ltr}
.g30-ring-p{font-size:15px;fill:var(--muted)}
.g30-sec{margin-top:22px}
.g30-sec h3{margin:0 0 8px;font-size:12.5px;color:var(--muted);font-weight:700}
.g30-muted{color:var(--muted);font-size:12.5px;margin:0}

/* milestones: a vertical path */
.g30-vms{list-style:none;margin:0;padding:0;display:grid}
.g30-vms li{position:relative;display:flex;align-items:center;gap:12px;padding:7px 0;font-size:14px;flex-wrap:wrap}
.g30-vms li:before{content:'';position:absolute;inset-inline-start:11px;top:-50%;height:100%;width:2px;background:var(--border)}
.g30-vms li:first-child:before{display:none}
.g30-vms li.is-done:before,.g30-vms li.is-next:before{background:var(--text)}
.g30-ms-t{overflow-wrap:anywhere;max-width:100%}
.g30-vms li.is-done .g30-ms-t{color:var(--muted);text-decoration:line-through}
.g30-vms li.is-next .g30-ms-t{font-weight:700}
.g30-vms small{font-size:11.5px;color:var(--muted)}
.g30-vms em{font-style:normal;font-size:10.5px;font-weight:700;padding:0 8px;border-radius:99px;background:var(--text);color:var(--bg);line-height:1.8}
.g30 input.g30-node,.g30 .g30-lk input.v21-check{appearance:none!important;-webkit-appearance:none!important;position:relative;z-index:1;flex:none;margin:0;padding:0!important;border:2px solid var(--border);background:var(--surface) center/70% no-repeat;cursor:pointer;transition:background-color .15s,border-color .15s}
.g30 input.g30-node{width:24px!important;height:24px!important;min-width:24px;border-radius:50%}
.g30 input.g30-node:hover{border-color:var(--muted)}
.g30-vms li.is-next input.g30-node{border-color:var(--text);box-shadow:0 0 0 5px color-mix(in srgb,var(--text) 12%,transparent)}
.g30 input.g30-node:checked,.g30 .g30-lk input.v21-check:checked{background-color:var(--text);border-color:var(--text);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8' fill='none' stroke='%23fafafa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body[data-theme="dark"] .g30 input.g30-node:checked,body[data-theme="dark"] .g30 .g30-lk input.v21-check:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8' fill='none' stroke='%23202020' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.g30 input.g30-node:focus-visible,.g30 .g30-lk input.v21-check:focus-visible{outline:2px solid var(--text);outline-offset:3px}

/* inline forms */
.g30-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:var(--muted)}
.g30-in{height:36px;border-radius:10px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);padding:0 12px;font:inherit;font-size:13.5px}
.g30-in:focus{outline:none;border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.g30-in.is-wide{flex:1 1 220px;max-width:300px}
.g30-in.is-num{width:92px;font:600 14px var(--latin,inherit);text-align:center}
.g30-ghost{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border-radius:10px;border:1px solid var(--border);background:transparent;color:var(--text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap}
.g30-ghost:hover{background:var(--surface-2)}
.g30-ghost:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.g30-ghost .g30-i{opacity:.8}
.g30-link{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:0;color:var(--text);font:inherit;font-size:11.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* numeric: start → now → target */
.g30-scale-bar{position:relative;height:8px;border-radius:99px;background:var(--surface-2);margin:34px 10px 8px}
.g30-scale-bar>span{position:absolute;inset-block:0;right:0;border-radius:99px;background:var(--text)}
.g30-scale-bar>i{position:absolute;top:50%;width:18px;height:18px;margin-right:-9px;margin-top:-9px;border-radius:50%;background:var(--surface);border:3px solid var(--text);font-style:normal}
.g30-scale-bar>i b{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font:700 13px var(--latin,inherit);white-space:nowrap;color:var(--text)}
.g30-scale-bar>i small{position:absolute;top:18px;left:50%;transform:translateX(-50%);font-size:10.5px;color:var(--muted);white-space:nowrap}
.g30-scale-ends{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11.5px;color:var(--muted);margin-top:14px}
.g30-scale-ends b{color:var(--text);font-family:var(--latin,inherit)}

/* count: one pip per unit; time: blocks of hours */
.g30-pips{display:flex;flex-wrap:wrap;gap:6px}
.g30-pips span{flex:0 0 auto;width:20px;height:26px;border-radius:5px 5px 3px 3px;border:1.5px solid var(--border);background:linear-gradient(to left,var(--text) calc(var(--f)*100%),transparent 0)}
.g30-hblocks{display:grid;gap:6px}
.g30-hblocks span{height:26px;border-radius:7px;border:1px solid var(--border);background:linear-gradient(to left,var(--text) calc(var(--f)*100%),var(--surface-2) 0)}
.g30-log{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:2px}
.g30-log li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px;padding:4px 0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
.g30-log li:last-child{border-bottom:0}
.g30-log b{font-family:var(--latin,inherit)}
.g30-log small{color:var(--muted);font-size:11.5px}
.g30-log .g30-link{margin-inline-start:auto}

/* linked tasks and habits */
.g30-links{display:grid}
.g30 .g30-lk{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);font-size:13.5px}
.g30 .g30-lk:last-child{border-bottom:0}
.g30 .g30-lk label{display:flex;align-items:center;gap:12px;flex:1;cursor:pointer}
.g30 .g30-lk label>span{overflow-wrap:anywhere}
.g30 .g30-lk small{display:block;font-size:11px;color:var(--muted);margin-top:1px}
.g30 .g30-lk input.v21-check{width:20px!important;height:20px!important;min-width:20px;border-radius:50%}
.g30 .g30-lk.is-habit input.v21-check{border-radius:6px}
.g30 .g30-lk input.v21-check:disabled{opacity:.35;cursor:default}
.g30 .g30-lk input:checked+span{color:var(--muted);text-decoration:line-through}
.g30 .g30-lk .ui-action{flex:none;color:var(--muted)}
.g30-addlinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}

/* ---------- empty ---------- */
.g30-empty{display:grid;justify-items:center;text-align:center;gap:6px;padding:48px 24px 54px;border-radius:24px;background:var(--surface);border:1px solid var(--border)}
.g30-empty-art svg{width:150px;height:150px;display:block;margin-bottom:6px}
.g30-empty h2{margin:0;font-size:20px}
.g30-empty p{margin:0 0 12px;max-width:420px;color:var(--muted);font-size:13.5px;line-height:1.8}

/* ---------- narrow ---------- */
@container (max-width:860px){
 .g30-cols{grid-template-columns:minmax(260px,330px) minmax(0,1fr)}
 .g30-detail{padding:22px 22px}
 .g30-dtop h2{font-size:23px}
 .g30-why p{font-size:18px}
}
@container (max-width:700px){
 .g30-cols{grid-template-columns:minmax(0,1fr)}
 .g30-orbit{max-width:270px}
 .g30-detail{scroll-margin-top:118px}
}
@container (max-width:460px){
 .g30-orb-card{padding:14px 10px 10px;border-radius:20px}
 .g30-orbit{max-width:230px}
 .g30-detail{padding:18px 16px;border-radius:20px}
 .g30-dtop h2{font-size:21px}
 .g30-why{margin:16px 0;padding:4px 14px}
 .g30-why p{font-size:16.5px}
 .g30-prog{gap:14px;padding:14px}
 .g30-prog .g30-ring{width:84px;height:84px}
 .g30-in.is-wide{max-width:none}
}
@media (prefers-reduced-motion:reduce){.g30 *{transition:none!important}}
